diff options
author | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-11-22 11:45:44 +0000 |
---|---|---|
committer | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-11-22 11:45:44 +0000 |
commit | 81fff07dafbbaec13216d9c1b520778042203728 (patch) | |
tree | c4588c0cedc095913999fd9852e64410ce8460ff /test/CodeGen/X86/fp_constant_op.ll | |
parent | 21870411d9c1807526b613d04c2ebae5a43c263b (diff) | |
download | llvm-81fff07dafbbaec13216d9c1b520778042203728.tar.gz llvm-81fff07dafbbaec13216d9c1b520778042203728.tar.bz2 llvm-81fff07dafbbaec13216d9c1b520778042203728.tar.xz |
Convert a few tests to FileCheck for PR5307.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89584 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/fp_constant_op.ll')
-rw-r--r-- | test/CodeGen/X86/fp_constant_op.ll | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/test/CodeGen/X86/fp_constant_op.ll b/test/CodeGen/X86/fp_constant_op.ll index 8e823ede56..e7bcce13bb 100644 --- a/test/CodeGen/X86/fp_constant_op.ll +++ b/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]}} + |