diff options
author | Chris Lattner <sabre@nondot.org> | 2006-05-24 00:49:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-05-24 00:49:32 +0000 |
commit | c22158d371feb847f988e1ab2b287a27ea4c3c73 (patch) | |
tree | c5a2659d48fa4abf6dacf9e38ea7edb3911ffd8c | |
parent | 2ef5e89dc964ffb6a84d1e1a2a29c429dc4aa715 (diff) |
One of these xforms is only safe with unsafe math enabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28446 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/X86/fabs.ll | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/CodeGen/X86/fabs.ll b/test/CodeGen/X86/fabs.ll index 671862d92e..9bbd9fdaf0 100644 --- a/test/CodeGen/X86/fabs.ll +++ b/test/CodeGen/X86/fabs.ll @@ -1,5 +1,6 @@ ; Make sure this testcase codegens to the fabs instruction, not a call to fabsf -; RUN: llvm-as < %s | llc -march=x86 -mattr=-sse2,-sse3 | grep 'fabs$' | wc -l | grep 2 +; RUN: llvm-as < %s | llc -march=x86 -mattr=-sse2,-sse3 | grep 'fabs$' | wc -l | grep 1 && +; RUN: llvm-as < %s | llc -march=x86 -mattr=-sse2,-sse3 -enable-unsafe-fp-math | grep 'fabs$' | wc -l | grep 2 declare float %fabsf(float) |