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/Assembler/ConstantExprNoFold.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/Assembler/ConstantExprNoFold.ll')
-rw-r--r-- | test/Assembler/ConstantExprNoFold.ll | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/Assembler/ConstantExprNoFold.ll b/test/Assembler/ConstantExprNoFold.ll index 83236d5..38f8cbb 100644 --- a/test/Assembler/ConstantExprNoFold.ll +++ b/test/Assembler/ConstantExprNoFold.ll @@ -14,21 +14,21 @@ target datalayout = "p:32:32" ; icmp should return true. It's not valid to *dereference* in @B from a pointer ; based on @A, but icmp isn't a dereference. -; CHECK: @C = global i1 icmp eq (i64* getelementptr inbounds (i64* @A, i64 1), i64* @B) -@C = global i1 icmp eq (i64* getelementptr inbounds (i64* @A, i64 1), i64* @B) +; CHECK: @C = global i1 icmp eq (i64* getelementptr inbounds (i64, i64* @A, i64 1), i64* @B) +@C = global i1 icmp eq (i64* getelementptr inbounds (i64, i64* @A, i64 1), i64* @B) ; Don't fold this completely away either. In theory this could be simplified ; to only use a gep on one side of the icmp though. -; CHECK: @D = global i1 icmp eq (i64* getelementptr inbounds (i64* @A, i64 1), i64* getelementptr inbounds (i64* @B, i64 2)) -@D = global i1 icmp eq (i64* getelementptr inbounds (i64* @A, i64 1), i64* getelementptr inbounds (i64* @B, i64 2)) +; CHECK: @D = global i1 icmp eq (i64* getelementptr inbounds (i64, i64* @A, i64 1), i64* getelementptr inbounds (i64, i64* @B, i64 2)) +@D = global i1 icmp eq (i64* getelementptr inbounds (i64, i64* @A, i64 1), i64* getelementptr inbounds (i64, i64* @B, i64 2)) ; CHECK: @E = global i64 addrspace(1)* addrspacecast (i64* @A to i64 addrspace(1)*) @E = global i64 addrspace(1)* addrspacecast(i64* @A to i64 addrspace(1)*) ; Don't add an inbounds on @weak.gep, since @weak may be null. -; CHECK: @weak.gep = global i32* getelementptr (i32* @weak, i32 1) -@weak.gep = global i32* getelementptr (i32* @weak, i32 1) +; CHECK: @weak.gep = global i32* getelementptr (i32, i32* @weak, i32 1) +@weak.gep = global i32* getelementptr (i32, i32* @weak, i32 1) @weak = extern_weak global i32 ; An object with weak linkage cannot have it's identity determined at compile time. @@ -43,8 +43,8 @@ target datalayout = "p:32:32" @empty.cmp = global i1 icmp eq ([0 x i8]* @empty.1, [0 x i8]* @empty.2) ; Don't add an inbounds on @glob.a3, since it's not inbounds. -; CHECK: @glob.a3 = alias getelementptr (i32* @glob.a2, i32 1) +; CHECK: @glob.a3 = alias getelementptr (i32, i32* @glob.a2, i32 1) @glob = global i32 0 -@glob.a3 = alias getelementptr (i32* @glob.a2, i32 1) -@glob.a2 = alias getelementptr (i32* @glob.a1, i32 1) +@glob.a3 = alias getelementptr (i32, i32* @glob.a2, i32 1) +@glob.a2 = alias getelementptr (i32, i32* @glob.a1, i32 1) @glob.a1 = alias i32* @glob |