1 ; This test makes sure that these instructions are properly constant propagated.
4 ; RUN: llvm-as < %s | opt -ipsccp | llvm-dis -o /dev/null -f &&
5 ; RUN: llvm-as < %s | opt -ipsccp | llvm-dis | not grep load
6 ; RUN: llvm-as < %s | opt -ipsccp | llvm-dis | not grep fdiv
9 @Y = constant [2 x { i212, float }] [ { i212, float } { i212 12, float 1.0 },
10 { i212, float } { i212 37, float 1.2312 } ]
11 define i212 @test1() {
16 define internal float @test2() {
17 %A = getelementptr [2 x { i212, float}]* @Y, i32 0, i32 1, i32 1
22 define internal i212 @test3() {
23 %A = getelementptr [2 x { i212, float}]* @Y, i32 0, i32 0, i32 0
30 %A = call float @test2()
31 %B = call i212 @test3()
32 %C = mul i212 %B, -1234567
33 %D = sitofp i212 %C to float
34 %E = fdiv float %A, %D