diff options
Diffstat (limited to 'test/Transforms/InstCombine/mem-gep-zidx.ll')
-rw-r--r-- | test/Transforms/InstCombine/mem-gep-zidx.ll | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/Transforms/InstCombine/mem-gep-zidx.ll b/test/Transforms/InstCombine/mem-gep-zidx.ll index 9141d99..cf021b1 100644 --- a/test/Transforms/InstCombine/mem-gep-zidx.ll +++ b/test/Transforms/InstCombine/mem-gep-zidx.ll @@ -8,8 +8,8 @@ target triple = "powerpc64-unknown-linux-gnu" define signext i32 @test1(i32 signext %x) #0 { entry: %idxprom = sext i32 %x to i64 - %arrayidx = getelementptr inbounds [1 x i32]* @f.a, i64 0, i64 %idxprom - %0 = load i32* %arrayidx, align 4 + %arrayidx = getelementptr inbounds [1 x i32], [1 x i32]* @f.a, i64 0, i64 %idxprom + %0 = load i32, i32* %arrayidx, align 4 ret i32 %0 ; CHECK-LABEL: @test1 @@ -21,7 +21,7 @@ define void @test2(i32 signext %x, i64 %v) #0 { entry: %p = alloca i64 %idxprom = sext i32 %x to i64 - %arrayidx = getelementptr inbounds i64* %p, i64 %idxprom + %arrayidx = getelementptr inbounds i64, i64* %p, i64 %idxprom store i64 %v, i64* %arrayidx call void @foo(i64* %p) ret void @@ -36,12 +36,12 @@ define signext i32 @test3(i32 signext %x, i1 %y) #0 { entry: %idxprom = sext i32 %x to i64 %p = select i1 %y, [1 x i32]* @f.a, [1 x i32]* @f.b - %arrayidx = getelementptr inbounds [1 x i32]* %p, i64 0, i64 %idxprom - %0 = load i32* %arrayidx, align 4 + %arrayidx = getelementptr inbounds [1 x i32], [1 x i32]* %p, i64 0, i64 %idxprom + %0 = load i32, i32* %arrayidx, align 4 ret i32 %0 ; CHECK-LABEL: @test3 -; CHECK: getelementptr inbounds [1 x i32]* %p, i64 0, i64 0 +; CHECK: getelementptr inbounds [1 x i32], [1 x i32]* %p, i64 0, i64 0 } attributes #0 = { nounwind readnone } |