Dan Gohman | fce288f | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=arm | grep bic | count 2 |
| 2 | ; RUN: llc < %s -march=arm -mattr=+v6,+vfp2 | \ |
Jim Grosbach | e516549 | 2009-11-09 00:11:35 +0000 | [diff] [blame] | 3 | ; RUN: grep vneg | count 2 |
Lauro Ramos Venancio | 4c6676c | 2007-01-04 14:24:32 +0000 | [diff] [blame] | 4 | |
Reid Spencer | e3ff5ad | 2007-01-26 08:25:06 +0000 | [diff] [blame] | 5 | define float @test1(float %x, double %y) { |
Evan Cheng | 02b985c | 2007-01-19 09:20:23 +0000 | [diff] [blame] | 6 | %tmp = fpext float %x to double |
Reid Spencer | e3ff5ad | 2007-01-26 08:25:06 +0000 | [diff] [blame] | 7 | %tmp2 = tail call double @copysign( double %tmp, double %y ) |
Reid Spencer | 9085043 | 2007-01-30 16:16:01 +0000 | [diff] [blame] | 8 | %tmp3 = fptrunc double %tmp2 to float |
| 9 | ret float %tmp3 |
Lauro Ramos Venancio | 4c6676c | 2007-01-04 14:24:32 +0000 | [diff] [blame] | 10 | } |
| 11 | |
Reid Spencer | e3ff5ad | 2007-01-26 08:25:06 +0000 | [diff] [blame] | 12 | define double @test2(double %x, float %y) { |
Evan Cheng | 02b985c | 2007-01-19 09:20:23 +0000 | [diff] [blame] | 13 | %tmp = fpext float %y to double |
Reid Spencer | e3ff5ad | 2007-01-26 08:25:06 +0000 | [diff] [blame] | 14 | %tmp2 = tail call double @copysign( double %x, double %tmp ) |
Evan Cheng | 02b985c | 2007-01-19 09:20:23 +0000 | [diff] [blame] | 15 | ret double %tmp2 |
| 16 | } |
Lauro Ramos Venancio | 4c6676c | 2007-01-04 14:24:32 +0000 | [diff] [blame] | 17 | |
Reid Spencer | e3ff5ad | 2007-01-26 08:25:06 +0000 | [diff] [blame] | 18 | declare double @copysign(double, double) |