diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2015-04-08 08:55:49 -0700 |
---|---|---|
committer | Pirama Arumuga Nainar <pirama@google.com> | 2015-04-09 15:04:38 -0700 |
commit | 4c5e43da7792f75567b693105cc53e3f1992ad98 (patch) | |
tree | 1b2c9792582e12f5af0b1512e3094425f0dc0df9 /test/Transforms/ScalarRepl/copy-aggregate.ll | |
parent | c75239e6119d0f9a74c57099d91cbc9bde56bf33 (diff) | |
download | external_llvm-4c5e43da7792f75567b693105cc53e3f1992ad98.zip external_llvm-4c5e43da7792f75567b693105cc53e3f1992ad98.tar.gz external_llvm-4c5e43da7792f75567b693105cc53e3f1992ad98.tar.bz2 |
Update aosp/master llvm for rebase to r233350
Change-Id: I07d935f8793ee8ec6b7da003f6483046594bca49
Diffstat (limited to 'test/Transforms/ScalarRepl/copy-aggregate.ll')
-rw-r--r-- | test/Transforms/ScalarRepl/copy-aggregate.ll | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/test/Transforms/ScalarRepl/copy-aggregate.ll b/test/Transforms/ScalarRepl/copy-aggregate.ll index 51ba810..97977db 100644 --- a/test/Transforms/ScalarRepl/copy-aggregate.ll +++ b/test/Transforms/ScalarRepl/copy-aggregate.ll @@ -10,10 +10,10 @@ define i32 @test1(i64 %V) nounwind { %Y = bitcast {{i32,i32}}* %X to i64* store i64 %V, i64* %Y - %A = getelementptr {{i32,i32}}* %X, i32 0, i32 0, i32 0 - %B = getelementptr {{i32,i32}}* %X, i32 0, i32 0, i32 1 - %a = load i32* %A - %b = load i32* %B + %A = getelementptr {{i32,i32}}, {{i32,i32}}* %X, i32 0, i32 0, i32 0 + %B = getelementptr {{i32,i32}}, {{i32,i32}}* %X, i32 0, i32 0, i32 1 + %a = load i32, i32* %A + %b = load i32, i32* %B %c = add i32 %a, %b ret i32 %c } @@ -26,10 +26,10 @@ define float @test2(i128 %V) nounwind { %Y = bitcast {[4 x float]}* %X to i128* store i128 %V, i128* %Y - %A = getelementptr {[4 x float]}* %X, i32 0, i32 0, i32 0 - %B = getelementptr {[4 x float]}* %X, i32 0, i32 0, i32 3 - %a = load float* %A - %b = load float* %B + %A = getelementptr {[4 x float]}, {[4 x float]}* %X, i32 0, i32 0, i32 0 + %B = getelementptr {[4 x float]}, {[4 x float]}* %X, i32 0, i32 0, i32 3 + %a = load float, float* %A + %b = load float, float* %B %c = fadd float %a, %b ret float %c } @@ -40,13 +40,13 @@ define i64 @test3(i32 %a, i32 %b) nounwind { ; CHECK-NOT: alloca %X = alloca {{i32, i32}} - %A = getelementptr {{i32,i32}}* %X, i32 0, i32 0, i32 0 - %B = getelementptr {{i32,i32}}* %X, i32 0, i32 0, i32 1 + %A = getelementptr {{i32,i32}}, {{i32,i32}}* %X, i32 0, i32 0, i32 0 + %B = getelementptr {{i32,i32}}, {{i32,i32}}* %X, i32 0, i32 0, i32 1 store i32 %a, i32* %A store i32 %b, i32* %B %Y = bitcast {{i32,i32}}* %X to i64* - %Z = load i64* %Y + %Z = load i64, i64* %Y ret i64 %Z } @@ -55,13 +55,13 @@ define i128 @test4(float %a, float %b) nounwind { ; CHECK: test4 ; CHECK-NOT: alloca %X = alloca {[4 x float]} - %A = getelementptr {[4 x float]}* %X, i32 0, i32 0, i32 0 - %B = getelementptr {[4 x float]}* %X, i32 0, i32 0, i32 3 + %A = getelementptr {[4 x float]}, {[4 x float]}* %X, i32 0, i32 0, i32 0 + %B = getelementptr {[4 x float]}, {[4 x float]}* %X, i32 0, i32 0, i32 3 store float %a, float* %A store float %b, float* %B %Y = bitcast {[4 x float]}* %X to i128* - %V = load i128* %Y + %V = load i128, i128* %Y ret i128 %V } |