Chris Lattner | 597f22f | 2005-04-02 05:35:00 +0000 | [diff] [blame] | 1 | ; Make sure this testcase codegens to the fabs instruction, not a call to fabsf |
Chris Lattner | e217107 | 2005-04-02 05:40:03 +0000 | [diff] [blame] | 2 | ; RUN: llvm-as < %s | llc -march=x86 -disable-pattern-isel=0 | grep 'fabs$' |
Chris Lattner | 597f22f | 2005-04-02 05:35:00 +0000 | [diff] [blame] | 3 | |
4 | declare float %fabsf(float) | ||||
5 | |||||
6 | float %fabsftest(float %X) { | ||||
7 | %Y = call float %fabsf(float %X) | ||||
8 | ret float %Y | ||||
9 | } | ||||
10 |