Reid Spencer | 6405099 | 2006-12-29 20:01:32 +0000 | [diff] [blame] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep zext |
Chris Lattner | 83830075 | 2006-12-05 23:43:20 +0000 | [diff] [blame] | 2 | |
| 3 | ; Never merge these two conversions, even though it's possible: this is |
| 4 | ; significantly more expensive than the two conversions on some targets |
| 5 | ; and it causes libgcc to be compile __fixunsdfdi into a recursive |
| 6 | ; function. |
| 7 | |
| 8 | |
| 9 | long %test(double %D) { |
| 10 | %A = fptoui double %D to uint |
| 11 | %B = zext uint %A to long |
| 12 | ret long %B |
| 13 | } |