summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/ppc440-msync.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/PowerPC/ppc440-msync.ll')
-rw-r--r--test/CodeGen/PowerPC/ppc440-msync.ll12
1 files changed, 8 insertions, 4 deletions
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: