blob: 4661dfe55bb9bab4fd770bafc3c6d379c6a469ec [file] [log] [blame]
Reid Spencer64050992006-12-29 20:01:32 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep zext
Chris Lattner838300752006-12-05 23:43:20 +00002
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
9long %test(double %D) {
10 %A = fptoui double %D to uint
11 %B = zext uint %A to long
12 ret long %B
13}