diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2015-04-10 22:08:18 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-04-10 22:08:18 +0000 |
commit | 13a7db5b9c4f5e543d037be68ec3428216bfd550 (patch) | |
tree | 1b2c9792582e12f5af0b1512e3094425f0dc0df9 /test/Transforms/CodeGenPrepare/statepoint-relocate.ll | |
parent | 0eb46f5d1e06a4284663d636a74b06adc3a161d7 (diff) | |
parent | 31195f0bdca6ee2a5e72d07edf13e1d81206d949 (diff) | |
download | external_llvm-13a7db5b9c4f5e543d037be68ec3428216bfd550.zip external_llvm-13a7db5b9c4f5e543d037be68ec3428216bfd550.tar.gz external_llvm-13a7db5b9c4f5e543d037be68ec3428216bfd550.tar.bz2 |
am 31195f0b: Merge "Update aosp/master llvm for rebase to r233350"
* commit '31195f0bdca6ee2a5e72d07edf13e1d81206d949':
Update aosp/master llvm for rebase to r233350
Diffstat (limited to 'test/Transforms/CodeGenPrepare/statepoint-relocate.ll')
-rw-r--r-- | test/Transforms/CodeGenPrepare/statepoint-relocate.ll | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/test/Transforms/CodeGenPrepare/statepoint-relocate.ll b/test/Transforms/CodeGenPrepare/statepoint-relocate.ll index cf411bc..7aa526f 100644 --- a/test/Transforms/CodeGenPrepare/statepoint-relocate.ll +++ b/test/Transforms/CodeGenPrepare/statepoint-relocate.ll @@ -6,80 +6,80 @@ target triple = "x86_64-pc-linux-gnu" declare zeroext i1 @return_i1() define i32 @test_sor_basic(i32* %base) { -; CHECK: getelementptr i32* %base, i32 15 -; CHECK: getelementptr i32* %base-new, i32 15 +; CHECK: getelementptr i32, i32* %base, i32 15 +; CHECK: getelementptr i32, i32* %base-new, i32 15 entry: - %ptr = getelementptr i32* %base, i32 15 + %ptr = getelementptr i32, i32* %base, i32 15 %tok = call i32 (i1 ()*, i32, i32, ...)* @llvm.experimental.gc.statepoint.p0f_i1f(i1 ()* @return_i1, i32 0, i32 0, i32 0, i32* %base, i32* %ptr) %base-new = call i32* @llvm.experimental.gc.relocate.p0i32(i32 %tok, i32 4, i32 4) %ptr-new = call i32* @llvm.experimental.gc.relocate.p0i32(i32 %tok, i32 4, i32 5) - %ret = load i32* %ptr-new + %ret = load i32, i32* %ptr-new ret i32 %ret } define i32 @test_sor_two_derived(i32* %base) { -; CHECK: getelementptr i32* %base, i32 15 -; CHECK: getelementptr i32* %base, i32 12 -; CHECK: getelementptr i32* %base-new, i32 15 -; CHECK: getelementptr i32* %base-new, i32 12 +; CHECK: getelementptr i32, i32* %base, i32 15 +; CHECK: getelementptr i32, i32* %base, i32 12 +; CHECK: getelementptr i32, i32* %base-new, i32 15 +; CHECK: getelementptr i32, i32* %base-new, i32 12 entry: - %ptr = getelementptr i32* %base, i32 15 - %ptr2 = getelementptr i32* %base, i32 12 + %ptr = getelementptr i32, i32* %base, i32 15 + %ptr2 = getelementptr i32, i32* %base, i32 12 %tok = call i32 (i1 ()*, i32, i32, ...)* @llvm.experimental.gc.statepoint.p0f_i1f(i1 ()* @return_i1, i32 0, i32 0, i32 0, i32* %base, i32* %ptr, i32* %ptr2) %base-new = call i32* @llvm.experimental.gc.relocate.p0i32(i32 %tok, i32 4, i32 4) %ptr-new = call i32* @llvm.experimental.gc.relocate.p0i32(i32 %tok, i32 4, i32 5) %ptr2-new = call i32* @llvm.experimental.gc.relocate.p0i32(i32 %tok, i32 4, i32 6) - %ret = load i32* %ptr-new + %ret = load i32, i32* %ptr-new ret i32 %ret } define i32 @test_sor_ooo(i32* %base) { -; CHECK: getelementptr i32* %base, i32 15 -; CHECK: getelementptr i32* %base-new, i32 15 +; CHECK: getelementptr i32, i32* %base, i32 15 +; CHECK: getelementptr i32, i32* %base-new, i32 15 entry: - %ptr = getelementptr i32* %base, i32 15 + %ptr = getelementptr i32, i32* %base, i32 15 %tok = call i32 (i1 ()*, i32, i32, ...)* @llvm.experimental.gc.statepoint.p0f_i1f(i1 ()* @return_i1, i32 0, i32 0, i32 0, i32* %base, i32* %ptr) %ptr-new = call i32* @llvm.experimental.gc.relocate.p0i32(i32 %tok, i32 4, i32 5) %base-new = call i32* @llvm.experimental.gc.relocate.p0i32(i32 %tok, i32 4, i32 4) - %ret = load i32* %ptr-new + %ret = load i32, i32* %ptr-new ret i32 %ret } define i32 @test_sor_gep_smallint([3 x i32]* %base) { -; CHECK: getelementptr [3 x i32]* %base, i32 0, i32 2 -; CHECK: getelementptr [3 x i32]* %base-new, i32 0, i32 2 +; CHECK: getelementptr [3 x i32], [3 x i32]* %base, i32 0, i32 2 +; CHECK: getelementptr [3 x i32], [3 x i32]* %base-new, i32 0, i32 2 entry: - %ptr = getelementptr [3 x i32]* %base, i32 0, i32 2 + %ptr = getelementptr [3 x i32], [3 x i32]* %base, i32 0, i32 2 %tok = call i32 (i1 ()*, i32, i32, ...)* @llvm.experimental.gc.statepoint.p0f_i1f(i1 ()* @return_i1, i32 0, i32 0, i32 0, [3 x i32]* %base, i32* %ptr) %base-new = call [3 x i32]* @llvm.experimental.gc.relocate.p0a3i32(i32 %tok, i32 4, i32 4) %ptr-new = call i32* @llvm.experimental.gc.relocate.p0i32(i32 %tok, i32 4, i32 5) - %ret = load i32* %ptr-new + %ret = load i32, i32* %ptr-new ret i32 %ret } define i32 @test_sor_gep_largeint([3 x i32]* %base) { -; CHECK: getelementptr [3 x i32]* %base, i32 0, i32 21 -; CHECK-NOT: getelementptr [3 x i32]* %base-new, i32 0, i32 21 +; CHECK: getelementptr [3 x i32], [3 x i32]* %base, i32 0, i32 21 +; CHECK-NOT: getelementptr [3 x i32], [3 x i32]* %base-new, i32 0, i32 21 entry: - %ptr = getelementptr [3 x i32]* %base, i32 0, i32 21 + %ptr = getelementptr [3 x i32], [3 x i32]* %base, i32 0, i32 21 %tok = call i32 (i1 ()*, i32, i32, ...)* @llvm.experimental.gc.statepoint.p0f_i1f(i1 ()* @return_i1, i32 0, i32 0, i32 0, [3 x i32]* %base, i32* %ptr) %base-new = call [3 x i32]* @llvm.experimental.gc.relocate.p0a3i32(i32 %tok, i32 4, i32 4) %ptr-new = call i32* @llvm.experimental.gc.relocate.p0i32(i32 %tok, i32 4, i32 5) - %ret = load i32* %ptr-new + %ret = load i32, i32* %ptr-new ret i32 %ret } define i32 @test_sor_noop(i32* %base) { -; CHECK: getelementptr i32* %base, i32 15 +; CHECK: getelementptr i32, i32* %base, i32 15 ; CHECK: call i32* @llvm.experimental.gc.relocate.p0i32(i32 %tok, i32 4, i32 5) ; CHECK: call i32* @llvm.experimental.gc.relocate.p0i32(i32 %tok, i32 4, i32 6) entry: - %ptr = getelementptr i32* %base, i32 15 - %ptr2 = getelementptr i32* %base, i32 12 + %ptr = getelementptr i32, i32* %base, i32 15 + %ptr2 = getelementptr i32, i32* %base, i32 12 %tok = call i32 (i1 ()*, i32, i32, ...)* @llvm.experimental.gc.statepoint.p0f_i1f(i1 ()* @return_i1, i32 0, i32 0, i32 0, i32* %base, i32* %ptr, i32* %ptr2) %ptr-new = call i32* @llvm.experimental.gc.relocate.p0i32(i32 %tok, i32 4, i32 5) %ptr2-new = call i32* @llvm.experimental.gc.relocate.p0i32(i32 %tok, i32 4, i32 6) - %ret = load i32* %ptr-new + %ret = load i32, i32* %ptr-new ret i32 %ret } |