diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2015-04-10 21:22:52 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-04-10 21:23:04 +0000 |
commit | 31195f0bdca6ee2a5e72d07edf13e1d81206d949 (patch) | |
tree | 1b2c9792582e12f5af0b1512e3094425f0dc0df9 /test/Transforms/ArgumentPromotion/fp80.ll | |
parent | c75239e6119d0f9a74c57099d91cbc9bde56bf33 (diff) | |
parent | 4c5e43da7792f75567b693105cc53e3f1992ad98 (diff) | |
download | external_llvm-31195f0bdca6ee2a5e72d07edf13e1d81206d949.zip external_llvm-31195f0bdca6ee2a5e72d07edf13e1d81206d949.tar.gz external_llvm-31195f0bdca6ee2a5e72d07edf13e1d81206d949.tar.bz2 |
Merge "Update aosp/master llvm for rebase to r233350"
Diffstat (limited to 'test/Transforms/ArgumentPromotion/fp80.ll')
-rw-r--r-- | test/Transforms/ArgumentPromotion/fp80.ll | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/Transforms/ArgumentPromotion/fp80.ll b/test/Transforms/ArgumentPromotion/fp80.ll index a770d60..84ef603 100644 --- a/test/Transforms/ArgumentPromotion/fp80.ll +++ b/test/Transforms/ArgumentPromotion/fp80.ll @@ -24,22 +24,22 @@ entry: define internal i8 @UseLongDoubleUnsafely(%union.u* byval align 16 %arg) { entry: %bitcast = bitcast %union.u* %arg to %struct.s* - %gep = getelementptr inbounds %struct.s* %bitcast, i64 0, i32 2 - %result = load i8* %gep + %gep = getelementptr inbounds %struct.s, %struct.s* %bitcast, i64 0, i32 2 + %result = load i8, i8* %gep ret i8 %result } ; CHECK: internal x86_fp80 @UseLongDoubleSafely(x86_fp80 {{%.*}}) { define internal x86_fp80 @UseLongDoubleSafely(%union.u* byval align 16 %arg) { - %gep = getelementptr inbounds %union.u* %arg, i64 0, i32 0 - %fp80 = load x86_fp80* %gep + %gep = getelementptr inbounds %union.u, %union.u* %arg, i64 0, i32 0 + %fp80 = load x86_fp80, x86_fp80* %gep ret x86_fp80 %fp80 } ; CHECK: define internal i64 @AccessPaddingOfStruct(%struct.Foo* byval %a) { define internal i64 @AccessPaddingOfStruct(%struct.Foo* byval %a) { %p = bitcast %struct.Foo* %a to i64* - %v = load i64* %p + %v = load i64, i64* %p ret i64 %v } @@ -53,6 +53,6 @@ loop: %phi = phi %struct.Foo* [ null, %entry ], [ %gep, %loop ] %0 = phi %struct.Foo* [ %a, %entry ], [ %0, %loop ] store %struct.Foo* %phi, %struct.Foo** %a_ptr - %gep = getelementptr %struct.Foo* %a, i64 0 + %gep = getelementptr %struct.Foo, %struct.Foo* %a, i64 0 br label %loop } |