Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | not grep test |
| 2 | |
| 3 | define float @tst1(float %a, float %b) { |
| 4 | %tmp = tail call float @copysignf( float %b, float %a ) |
| 5 | ret float %tmp |
| 6 | } |
| 7 | |
| 8 | define double @tst2(double %a, float %b, float %c) { |
| 9 | %tmp1 = add float %b, %c |
| 10 | %tmp2 = fpext float %tmp1 to double |
| 11 | %tmp = tail call double @copysign( double %a, double %tmp2 ) |
| 12 | ret double %tmp |
| 13 | } |
| 14 | |
| 15 | declare float @copysignf(float, float) |
| 16 | declare double @copysign(double, double) |