1 ; Make sure this testcase codegens to the fabs instruction, not a call to fabsf
2 ; RUN: llvm-as < %s | llc -march=x86 -mattr=-sse2,-sse3 | grep 'fabs$' | wc -l | grep 1 &&
3 ; RUN: llvm-as < %s | llc -march=x86 -mattr=-sse2,-sse3 -enable-unsafe-fp-math | grep 'fabs$' | wc -l | grep 2
6 target pointersize = 32
8 declare float %fabsf(float)
10 float %fabsftest(float %X) {
11 %Y = call float %fabsf(float %X)
15 double %fabstest2(double %X) {
16 %Y = setge double %X, -0.0
17 %Z = sub double -0.0, %X
18 %Q = select bool %Y, double %X, double %Z