forked from OSchip/llvm-project
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
This commit is contained in:
parent
0aead04325
commit
ca1d849cd6
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue