1 ; RUN: opt < %s -scalarrepl | llvm-dis 2 3 define i32 @test(i32 %X) { 4 %Arr = alloca [2 x i32] ; <[2 x i32]*> [#uses=3] 5 %tmp.0 = getelementptr [2 x i32], [2 x i32]* %Arr, i32 0, i32 0 ; <i32*> [#uses=1] 6 store i32 1, i32* %tmp.0 7 %tmp.1 = getelementptr [2 x i32], [2 x i32]* %Arr, i32 0, i32 1 ; <i32*> [#uses=1] 8 store i32 2, i32* %tmp.1 9 %tmp.3 = getelementptr [2 x i32], [2 x i32]* %Arr, i32 0, i32 %X ; <i32*> [#uses=1] 10 %tmp.4 = load i32, i32* %tmp.3 ; <i32> [#uses=1] 11 ret i32 %tmp.4 12 } 13 14