[llvm-commits] [llvm] r142189 - in /llvm/trunk/test/CodeGen/PowerPC: ppc440-fp-basic.ll ppc440-msync.ll

Hal Finkel hfinkel at anl.gov
Mon Oct 17 09:01:41 PDT 2011


Author: hfinkel
Date: Mon Oct 17 11:01:41 2011
New Revision: 142189

URL: http://llvm.org/viewvc/llvm-project?rev=142189&view=rev
Log:
use FileCheck and not grep in new tests

Modified:
    llvm/trunk/test/CodeGen/PowerPC/ppc440-fp-basic.ll
    llvm/trunk/test/CodeGen/PowerPC/ppc440-msync.ll

Modified: llvm/trunk/test/CodeGen/PowerPC/ppc440-fp-basic.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/ppc440-fp-basic.ll?rev=142189&r1=142188&r2=142189&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/ppc440-fp-basic.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/ppc440-fp-basic.ll Mon Oct 17 11:01:41 2011
@@ -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 @@
   store double %add.r, double* %real
   store double %add.i, double* %imag
   ret void
+; CHECK: fmadd
 }

Modified: llvm/trunk/test/CodeGen/PowerPC/ppc440-msync.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/ppc440-msync.ll?rev=142189&r1=142188&r2=142189&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/ppc440-msync.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/ppc440-msync.ll Mon Oct 17 11:01:41 2011
@@ -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 @@
 
 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:





More information about the llvm-commits mailing list