diff options
author | Hal Finkel <hfinkel@anl.gov> | 2011-10-17 16:01:41 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2011-10-17 16:01:41 +0000 |
commit | 9dda3e0d136c0555d0d913eca4cf7cf8051e0875 (patch) | |
tree | 3af74cec2a4012f651e2342e02a5906023eef0ff /llvm/test/CodeGen | |
parent | ebf004990163b7588d2140a2c44be3ae991b4e29 (diff) | |
download | bcm5719-llvm-9dda3e0d136c0555d0d913eca4cf7cf8051e0875.tar.gz bcm5719-llvm-9dda3e0d136c0555d0d913eca4cf7cf8051e0875.zip |
use FileCheck and not grep in new tests
llvm-svn: 142189
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r-- | llvm/test/CodeGen/PowerPC/ppc440-fp-basic.ll | 3 | ||||
-rw-r--r-- | llvm/test/CodeGen/PowerPC/ppc440-msync.ll | 12 |
2 files changed, 10 insertions, 5 deletions
diff --git a/llvm/test/CodeGen/PowerPC/ppc440-fp-basic.ll b/llvm/test/CodeGen/PowerPC/ppc440-fp-basic.ll index 51c14378637..1fad2fa3aaf 100644 --- a/llvm/test/CodeGen/PowerPC/ppc440-fp-basic.ll +++ b/llvm/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/llvm/test/CodeGen/PowerPC/ppc440-msync.ll b/llvm/test/CodeGen/PowerPC/ppc440-msync.ll index 4d663bc56ce..1274173256c 100644 --- a/llvm/test/CodeGen/PowerPC/ppc440-msync.ll +++ b/llvm/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: |