One of these xforms is only safe with unsafe math enabled.
[oota-llvm.git] / test / CodeGen / X86 / fabs.ll
index 671862d92e1fdcccc39354fbbd6971d47b746a79..9bbd9fdaf0171dd21af91e6dc814bb0af2e8e68e 100644 (file)
@@ -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)