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 2
4 declare float %fabsf(float)
6 float %fabsftest(float %X) {
7 %Y = call float %fabsf(float %X)
11 double %fabstest2(double %X) {
12 %Y = setge double %X, -0.0
13 %Z = sub double -0.0, %X
14 %Q = select bool %Y, double %X, double %Z