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