summaryrefslogtreecommitdiff
path: root/test/CodeGen
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2011-10-17 16:01:41 +0000
committerHal Finkel <hfinkel@anl.gov>2011-10-17 16:01:41 +0000
commit3bca0b9d6ed545360ad68c86495fde4c983ce8b6 (patch)
treea95cbdee54429aab79fedb2309c0ac55b5c6091d /test/CodeGen
parent41adc5fb8bd0d81f07d93754868bd9f27b6fd9af (diff)
downloadllvm-3bca0b9d6ed545360ad68c86495fde4c983ce8b6.tar.gz
llvm-3bca0b9d6ed545360ad68c86495fde4c983ce8b6.tar.bz2
llvm-3bca0b9d6ed545360ad68c86495fde4c983ce8b6.tar.xz
use FileCheck and not grep in new tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142189 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/PowerPC/ppc440-fp-basic.ll3
-rw-r--r--test/CodeGen/PowerPC/ppc440-msync.ll12
2 files changed, 10 insertions, 5 deletions
diff --git a/test/CodeGen/PowerPC/ppc440-fp-basic.ll b/test/CodeGen/PowerPC/ppc440-fp-basic.ll
index 51c1437863..1fad2fa3aa 100644
--- a/test/CodeGen/PowerPC/ppc440-fp-basic.ll
+++ b/test/CodeGen/PowerPC/ppc440-fp-basic.ll
@@ -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
}
diff --git a/test/CodeGen/PowerPC/ppc440-msync.ll b/test/CodeGen/PowerPC/ppc440-msync.ll
index 4d663bc56c..1274173256 100644
--- a/test/CodeGen/PowerPC/ppc440-msync.ll
+++ b/test/CodeGen/PowerPC/ppc440-msync.ll
@@ -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: