git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142189
91177308-0d34-0410-b5e6-
96231b3b80d8
-; RUN: llc < %s -march=ppc32 -mcpu=440 | grep fmadd
+; RUN: llc < %s -march=ppc32 -mcpu=440 | FileCheck %s
%0 = type { double, double }
store double %add.r, double* %real
store double %add.i, double* %imag
ret void
+; CHECK: fmadd
}
-; 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:
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: