Dan Gohman | 0a06310 | 2009-09-08 23:54:48 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=x86 -mattr=+sse2 | not grep test |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 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) { |
Dan Gohman | 7ce405e | 2009-06-04 22:49:04 +0000 | [diff] [blame] | 9 | %tmp1 = fadd float %b, %c |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 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) |