summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorArtur Pilipenko <apilipenko@azulsystems.com>2018-03-27 17:33:50 +0000
committerArtur Pilipenko <apilipenko@azulsystems.com>2018-03-27 17:33:50 +0000
commitca1d849cd68e5db132e38cb9d9d80ba3afb8ca06 (patch)
tree7231d3aab12378ee010d761bf47eeeb913dc1d73 /llvm/test
parent0aead043258f0f1ea42b6e8916a6859d66a5710c (diff)
downloadbcm5719-llvm-ca1d849cd68e5db132e38cb9d9d80ba3afb8ca06.tar.gz
bcm5719-llvm-ca1d849cd68e5db132e38cb9d9d80ba3afb8ca06.zip
Fix a reoccuring typo in load-combine tests
%tmp = bitcast i32* %arg to i8* %tmp1 = getelementptr inbounds i8, i8* %tmp, i32 0 - %tmp2 = load i8, i8* %tmp, align 1 + %tmp2 = load i8, i8* %tmp1, align 1 This doesn't change the semantics of the tests but makes use of %tmp1 which was originally intended. llvm-svn: 328642
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/AArch64/load-combine.ll4
-rw-r--r--llvm/test/CodeGen/ARM/load-combine-big-endian.ll2
-rw-r--r--llvm/test/CodeGen/ARM/load-combine.ll4
3 files changed, 5 insertions, 5 deletions
diff --git a/llvm/test/CodeGen/AArch64/load-combine.ll b/llvm/test/CodeGen/AArch64/load-combine.ll
index f0ed40357f1..b9879b555aa 100644
--- a/llvm/test/CodeGen/AArch64/load-combine.ll
+++ b/llvm/test/CodeGen/AArch64/load-combine.ll
@@ -8,7 +8,7 @@ define i32 @load_i32_by_i8_unaligned(i32* %arg) {
; CHECK-NEXT: ret
%tmp = bitcast i32* %arg to i8*
%tmp1 = getelementptr inbounds i8, i8* %tmp, i32 0
- %tmp2 = load i8, i8* %tmp, align 1
+ %tmp2 = load i8, i8* %tmp1, align 1
%tmp3 = zext i8 %tmp2 to i32
%tmp4 = getelementptr inbounds i8, i8* %tmp, i32 1
%tmp5 = load i8, i8* %tmp4, align 1
@@ -36,7 +36,7 @@ define i32 @load_i32_by_i8_aligned(i32* %arg) {
; CHECK-NEXT: ret
%tmp = bitcast i32* %arg to i8*
%tmp1 = getelementptr inbounds i8, i8* %tmp, i32 0
- %tmp2 = load i8, i8* %tmp, align 4
+ %tmp2 = load i8, i8* %tmp1, align 4
%tmp3 = zext i8 %tmp2 to i32
%tmp4 = getelementptr inbounds i8, i8* %tmp, i32 1
%tmp5 = load i8, i8* %tmp4, align 1
diff --git a/llvm/test/CodeGen/ARM/load-combine-big-endian.ll b/llvm/test/CodeGen/ARM/load-combine-big-endian.ll
index 8d8a0136cf9..c7c658ad70c 100644
--- a/llvm/test/CodeGen/ARM/load-combine-big-endian.ll
+++ b/llvm/test/CodeGen/ARM/load-combine-big-endian.ll
@@ -51,7 +51,7 @@ define i32 @load_i32_by_i8_bswap(i32* %arg) {
; CHECK-ARMv6-NEXT: bx lr
%tmp = bitcast i32* %arg to i8*
%tmp1 = getelementptr inbounds i8, i8* %tmp, i32 0
- %tmp2 = load i8, i8* %tmp, align 4
+ %tmp2 = load i8, i8* %tmp1, align 4
%tmp3 = zext i8 %tmp2 to i32
%tmp4 = getelementptr inbounds i8, i8* %tmp, i32 1
%tmp5 = load i8, i8* %tmp4, align 1
diff --git a/llvm/test/CodeGen/ARM/load-combine.ll b/llvm/test/CodeGen/ARM/load-combine.ll
index 720bc7b88b3..72f4c5c7419 100644
--- a/llvm/test/CodeGen/ARM/load-combine.ll
+++ b/llvm/test/CodeGen/ARM/load-combine.ll
@@ -21,7 +21,7 @@ define i32 @load_i32_by_i8_unaligned(i32* %arg) {
; CHECK-ARMv6: bx lr
%tmp = bitcast i32* %arg to i8*
%tmp1 = getelementptr inbounds i8, i8* %tmp, i32 0
- %tmp2 = load i8, i8* %tmp, align 1
+ %tmp2 = load i8, i8* %tmp1, align 1
%tmp3 = zext i8 %tmp2 to i32
%tmp4 = getelementptr inbounds i8, i8* %tmp, i32 1
%tmp5 = load i8, i8* %tmp4, align 1
@@ -53,7 +53,7 @@ define i32 @load_i32_by_i8_aligned(i32* %arg) {
; CHECK-ARMv6-NEXT: bx lr
%tmp = bitcast i32* %arg to i8*
%tmp1 = getelementptr inbounds i8, i8* %tmp, i32 0
- %tmp2 = load i8, i8* %tmp, align 4
+ %tmp2 = load i8, i8* %tmp1, align 4
%tmp3 = zext i8 %tmp2 to i32
%tmp4 = getelementptr inbounds i8, i8* %tmp, i32 1
%tmp5 = load i8, i8* %tmp4, align 1
OpenPOWER on IntegriCloud