use FileCheck and not grep in new tests
authorHal Finkel <hfinkel@anl.gov>
Mon, 17 Oct 2011 16:01:41 +0000 (16:01 +0000)
committerHal Finkel <hfinkel@anl.gov>
Mon, 17 Oct 2011 16:01:41 +0000 (16:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142189 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/PowerPC/ppc440-fp-basic.ll
test/CodeGen/PowerPC/ppc440-msync.ll

index 51c14378637f494a7dfa5ba332a4320d8fa438f8..1fad2fa3aaf506acf63f2b076399863ab973ad90 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=ppc32 -mcpu=440 | grep fmadd
+; RUN: llc < %s -march=ppc32 -mcpu=440 | FileCheck %s
 
 %0 = type { double, double }
 
@@ -29,4 +29,5 @@ entry:
   store double %add.r, double* %real
   store double %add.i, double* %imag
   ret void
+; CHECK: fmadd
 }
index 4d663bc56cedcfb3e909b6f44d408795f337059c..1274173256cfeddd6c3944b449f567da58759773 100644 (file)
@@ -1,7 +1,5 @@
-; RUN: llc < %s -march=ppc32 -o %t
-; RUN: grep sync %t
-; RUN: not grep msync %t 
-; RUN: llc < %s -march=ppc32 -mcpu=440 | grep msync
+; RUN: llc < %s -march=ppc32 | FileCheck %s
+; RUN: llc < %s -march=ppc32 -mcpu=440 | FileCheck %s -check-prefix=BE-CHK
 
 define i32 @has_a_fence(i32 %a, i32 %b) nounwind {
 entry:
@@ -11,10 +9,16 @@ entry:
 
 IfEqual:
   fence release
+; CHECK: sync
+; CHECK-NOT: msync
+; BE-CHK: msync
   br label %end
 
 IfUnequal:
   fence release
+; CHECK: sync
+; CHECK-NOT: msync
+; BE-CHK: msync
   ret i32 0
 
 end: