summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/fp_constant_op.ll
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@auroraux.org>2009-11-22 11:45:44 +0000
committerEdward O'Callaghan <eocallaghan@auroraux.org>2009-11-22 11:45:44 +0000
commit15dd46215e2f43b9a768b5c0dadfd1571a7464b4 (patch)
tree778ce56ef9476a20269ea6bff1145ccac0e0dfd1 /llvm/test/CodeGen/X86/fp_constant_op.ll
parent12048d868b51701295c95f23c47c9b3e8b6cf6c8 (diff)
downloadbcm5719-llvm-15dd46215e2f43b9a768b5c0dadfd1571a7464b4.tar.gz
bcm5719-llvm-15dd46215e2f43b9a768b5c0dadfd1571a7464b4.zip
Convert a few tests to FileCheck for PR5307.
llvm-svn: 89584
Diffstat (limited to 'llvm/test/CodeGen/X86/fp_constant_op.ll')
-rw-r--r--llvm/test/CodeGen/X86/fp_constant_op.ll13
1 files changed, 10 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/X86/fp_constant_op.ll b/llvm/test/CodeGen/X86/fp_constant_op.ll
index 8e823ede56a..e7bcce13bbd 100644
--- a/llvm/test/CodeGen/X86/fp_constant_op.ll
+++ b/llvm/test/CodeGen/X86/fp_constant_op.ll
@@ -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]}}
+
OpenPOWER on IntegriCloud