Avoid creating a redundant zero APInt.
[oota-llvm.git] / test / CodeGen / Generic / 2008-02-25-NegateZero.ll
1 ; RUN: llvm-as < %s | llc 
2 ; rdar://5763967
3
4 define void @test() {
5 entry:
6         %tmp98 = load float* null, align 4              ; <float> [#uses=1]
7         %tmp106 = load float* null, align 4             ; <float> [#uses=1]
8         %tmp113 = add float %tmp98, %tmp106             ; <float> [#uses=1]
9         %tmp119 = sub float %tmp113, 0.000000e+00               ; <float> [#uses=1]
10         call void (i32, ...)* @foo( i32 0, float 0.000000e+00, float %tmp119 ) nounwind 
11         ret void
12 }
13
14 declare void @foo(i32, ...)