blob: 74483c1d9c773fc93e67df79007006ba68391b1c [file] [log] [blame]
Dan Gohman18800922009-09-11 18:01:28 +00001; RUN: opt < %s -instcombine -S | 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.
Tanya Lattner5640bd12008-03-01 09:15:35 +00007define i64 @test(double %D) {
8 %A = fptoui double %D to i32 ; <i32> [#uses=1]
9 %B = zext i32 %A to i64 ; <i64> [#uses=1]
10 ret i64 %B
Chris Lattner838300752006-12-05 23:43:20 +000011}
Tanya Lattner5640bd12008-03-01 09:15:35 +000012