[PATCH] D17044: Prevent some erroneous lit test failures due to unlucky name of working directory

Mitch Bodart via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 9 14:56:43 PST 2016


mbodart created this revision.
mbodart added a reviewer: rengolin.
mbodart added a subscriber: llvm-commits.

Add CHECK-LABEL to several tests which check for the absence of "mov" in llc's assembly output.
Otherwise they will fail if the path name to the LLVM workspace contains "mov", as that name is
emitted in the .file directive.

http://reviews.llvm.org/D17044

Files:
  test/CodeGen/ARM/hello.ll
  test/CodeGen/ARM/ldr_frame.ll
  test/CodeGen/ARM/truncstore-dag-combine.ll

Index: test/CodeGen/ARM/truncstore-dag-combine.ll
===================================================================
--- test/CodeGen/ARM/truncstore-dag-combine.ll
+++ test/CodeGen/ARM/truncstore-dag-combine.ll
@@ -16,6 +16,11 @@
 	ret void
 }
 
+; CHECK-LABEL: bar:
+; CHECK-NOT: orr
+; CHECK-NOT: mov
+
+; CHECK-LABEL: foo:
 ; CHECK-NOT: orr
 ; CHECK-NOT: mov
 
Index: test/CodeGen/ARM/ldr_frame.ll
===================================================================
--- test/CodeGen/ARM/ldr_frame.ll
+++ test/CodeGen/ARM/ldr_frame.ll
@@ -30,5 +30,6 @@
 	ret i32 %tmp2
 }
 
+; CHECK-LABEL: f1:
 ; CHECK-NOT: mov
 
Index: test/CodeGen/ARM/hello.ll
===================================================================
--- test/CodeGen/ARM/hello.ll
+++ test/CodeGen/ARM/hello.ll
@@ -16,9 +16,11 @@
 
 declare i32 @puts(i8*)
 
+; CHECK-LABEL: main:
 ; CHECK: mov
 ; CHECK-NOT: mov
 
+; CHECK-FP-ELIM-LABEL: main:
 ; CHECK-FP-ELIM: mov
 ; CHECK-FP-ELIM: mov
 ; CHECK-FP-ELIM-NOT: mov


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17044.47366.patch
Type: text/x-patch
Size: 981 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160209/2596bb54/attachment.bin>


More information about the llvm-commits mailing list