diff options
author | Kai Nacke <kai@redstar.de> | 2022-06-03 20:22:21 -0400 |
---|---|---|
committer | Kai Nacke <kai@redstar.de> | 2022-11-13 11:07:18 -0500 |
commit | e971d1ea8773018a72e627137ac26ace80169ea2 (patch) | |
tree | 73c21be6473c3dc390f8e4fbe8ccfc67bf5e8798 | |
parent | 65987fdab583cac18bd2ea45a85417d5d742854a (diff) | |
download | llvm-e971d1ea8773018a72e627137ac26ace80169ea2.zip llvm-e971d1ea8773018a72e627137ac26ace80169ea2.tar.gz llvm-e971d1ea8773018a72e627137ac26ace80169ea2.tar.bz2 |
[m88k] Convert test cases to use opaque pointer syntax
-rw-r--r-- | llvm/test/CodeGen/M88k/load.ll | 10 | ||||
-rw-r--r-- | llvm/test/CodeGen/M88k/store.ll | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/llvm/test/CodeGen/M88k/load.ll b/llvm/test/CodeGen/M88k/load.ll index 7d5e6c0..5632ced 100644 --- a/llvm/test/CodeGen/M88k/load.ll +++ b/llvm/test/CodeGen/M88k/load.ll @@ -12,7 +12,7 @@ define i32 @get_mem32() { ; CHECK: or.u %r2, %r0, %hi16(mem32) ; CHECK-NEXT: jmp.n %r1 ; CHECK-NEXT: ld %r2, %r2, %lo16(mem32) - %res = load i32, i32* @mem32, align 4 + %res = load i32, ptr @mem32, align 4 ret i32 %res } @@ -21,7 +21,7 @@ define i32 @get_mem16s() { ; CHECK: or.u %r2, %r0, %hi16(mem16) ; CHECK-NEXT: jmp.n %r1 ; CHECK-NEXT: ld.h %r2, %r2, %lo16(mem16) - %val = load i16, i16* @mem16, align 2 + %val = load i16, ptr @mem16, align 2 %res = sext i16 %val to i32 ret i32 %res } @@ -31,7 +31,7 @@ define i32 @get_mem16u() { ; CHECK: or.u %r2, %r0, %hi16(mem16) ; CHECK-NEXT: jmp.n %r1 ; CHECK-NEXT: ld.hu %r2, %r2, %lo16(mem16) - %val = load i16, i16* @mem16, align 2 + %val = load i16, ptr @mem16, align 2 %res = zext i16 %val to i32 ret i32 %res } @@ -41,7 +41,7 @@ define i32 @get_mem8s() { ; CHECK: or.u %r2, %r0, %hi16(mem8) ; CHECK-NEXT: jmp.n %r1 ; CHECK-NEXT: ld.b %r2, %r2, %lo16(mem8) - %val = load i8, i8* @mem8, align 2 + %val = load i8, ptr @mem8, align 2 %res = sext i8 %val to i32 ret i32 %res } @@ -51,7 +51,7 @@ define i32 @get_mem8u() { ; CHECK: or.u %r2, %r0, %hi16(mem8) ; CHECK-NEXT: jmp.n %r1 ; CHECK-NEXT: ld.bu %r2, %r2, %lo16(mem8) - %val = load i8, i8* @mem8, align 2 + %val = load i8, ptr @mem8, align 2 %res = zext i8 %val to i32 ret i32 %res } diff --git a/llvm/test/CodeGen/M88k/store.ll b/llvm/test/CodeGen/M88k/store.ll index 557d5a7..5811d03 100644 --- a/llvm/test/CodeGen/M88k/store.ll +++ b/llvm/test/CodeGen/M88k/store.ll @@ -12,7 +12,7 @@ define void @set_mem32(i32 %val) { ; CHECK: or.u %r3, %r0, %hi16(mem32) ; CHECK-NEXT: jmp.n %r1 ; CHECK-NEXT: st %r2, %r3, %lo16(mem32) - store i32 %val, i32* @mem32, align 4 + store i32 %val, ptr @mem32, align 4 ret void } @@ -21,7 +21,7 @@ define void @set_mem16(i16 %val) { ; CHECK: or.u %r3, %r0, %hi16(mem16) ; CHECK-NEXT: jmp.n %r1 ; CHECK-NEXT: st.h %r2, %r3, %lo16(mem16) - store i16 %val, i16* @mem16, align 2 + store i16 %val, ptr @mem16, align 2 ret void } @@ -30,7 +30,7 @@ define void @set_mem8(i8 %val) { ; CHECK: or.u %r3, %r0, %hi16(mem8) ; CHECK-NEXT: jmp.n %r1 ; CHECK-NEXT: st.b %r2, %r3, %lo16(mem8) - store i8 %val, i8* @mem8, align 1 + store i8 %val, ptr @mem8, align 1 ret void } |