Convert a few tests to FileCheck for PR5307.
[oota-llvm.git] / test / CodeGen / X86 / fp_constant_op.ll
index 8e823ede56a03eac643cf36cf69e426a60454835..e7bcce13bbddd74b1d83239e0f30ad3d04df269e 100644 (file)
@@ -1,6 +1,4 @@
-; RUN: llc < %s -march=x86 -x86-asm-syntax=intel -mcpu=i486 | \
-; RUN:   grep {fadd\\|fsub\\|fdiv\\|fmul} | not grep -i ST
-
+; RUN: llc < %s -march=x86 -x86-asm-syntax=intel -mcpu=i486 | FileCheck %s
 ; Test that the load of the constant is folded into the operation.
 
 
@@ -8,11 +6,14 @@ define double @foo_add(double %P) {
        %tmp.1 = fadd double %P, 1.230000e+02           ; <double> [#uses=1]
        ret double %tmp.1
 }
+; CHECK: fadd {{[^sS][^tT]}}
+; CHECK: fadd {{[^sS][^tT]}}
 
 define double @foo_mul(double %P) {
        %tmp.1 = fmul double %P, 1.230000e+02           ; <double> [#uses=1]
        ret double %tmp.1
 }
+; CHECK: fmul {{[^sS][^tT]}}
 
 define double @foo_sub(double %P) {
        %tmp.1 = fsub double %P, 1.230000e+02           ; <double> [#uses=1]
@@ -33,3 +34,9 @@ define double @foo_divr(double %P) {
        %tmp.1 = fdiv double 1.230000e+02, %P           ; <double> [#uses=1]
        ret double %tmp.1
 }
+
+
+; CHECK: fsub {{[^sS][^tT]}}
+; CHECK: fdiv {{[^sS][^tT]}}
+; CHECK: fdiv {{[^sS][^tT]}}
+