From 779df38242447d1b2ca7e5331c95613b17d11932 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Mon, 16 Jan 2023 10:20:21 +0100 Subject: [PATCH] [LoongArch] Convert tests to opaque pointers (NFC) --- llvm/test/CodeGen/LoongArch/blockaddress-symbol.ll | 2 +- .../CodeGen/LoongArch/inline-asm-constraint-f.ll | 2 +- ...tack-realignment-with-variable-sized-objects.ll | 4 +-- llvm/test/CodeGen/LoongArch/stack-realignment.ll | 34 +++++++++++----------- 4 files changed, 21 insertions(+), 21 deletions(-) diff --git a/llvm/test/CodeGen/LoongArch/blockaddress-symbol.ll b/llvm/test/CodeGen/LoongArch/blockaddress-symbol.ll index 3f0d34e..d070922 100644 --- a/llvm/test/CodeGen/LoongArch/blockaddress-symbol.ll +++ b/llvm/test/CodeGen/LoongArch/blockaddress-symbol.ll @@ -18,7 +18,7 @@ define void @operand_block_address() nounwind { ; CHECK-NEXT: .Ltmp0: # Block address taken ; CHECK-NEXT: # %bb.1: # %bb ; CHECK-NEXT: ret - call void asm sideeffect "b $0", "i"(i8* blockaddress(@operand_block_address, %bb)) + call void asm sideeffect "b $0", "i"(ptr blockaddress(@operand_block_address, %bb)) br label %bb bb: ret void diff --git a/llvm/test/CodeGen/LoongArch/inline-asm-constraint-f.ll b/llvm/test/CodeGen/LoongArch/inline-asm-constraint-f.ll index a5569cd..fa675e4 100644 --- a/llvm/test/CodeGen/LoongArch/inline-asm-constraint-f.ll +++ b/llvm/test/CodeGen/LoongArch/inline-asm-constraint-f.ll @@ -26,7 +26,7 @@ define double @constraint_f_double(double %a) nounwind { ; LA64-NEXT: fadd.d $fa0, $fa0, $fa1 ; LA64-NEXT: #NO_APP ; LA64-NEXT: ret - %1 = load double, double* @gd + %1 = load double, ptr @gd %2 = tail call double asm "fadd.d $0, $1, $2", "=f,f,f"(double %a, double %1) ret double %2 } diff --git a/llvm/test/CodeGen/LoongArch/stack-realignment-with-variable-sized-objects.ll b/llvm/test/CodeGen/LoongArch/stack-realignment-with-variable-sized-objects.ll index 7e2f824..667a7af 100644 --- a/llvm/test/CodeGen/LoongArch/stack-realignment-with-variable-sized-objects.ll +++ b/llvm/test/CodeGen/LoongArch/stack-realignment-with-variable-sized-objects.ll @@ -4,7 +4,7 @@ ; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s \ ; RUN: | FileCheck %s --check-prefix=LA64 -declare void @callee(i8*, i32*) +declare void @callee(ptr, ptr) define void @caller(i32 %n) { ; LA32-LABEL: caller: @@ -68,6 +68,6 @@ define void @caller(i32 %n) { ; LA64-NEXT: ret %1 = alloca i8, i32 %n %2 = alloca i32, align 64 - call void @callee(i8* %1, i32 *%2) + call void @callee(ptr %1, ptr %2) ret void } diff --git a/llvm/test/CodeGen/LoongArch/stack-realignment.ll b/llvm/test/CodeGen/LoongArch/stack-realignment.ll index b49fe35..a9f3fc4 100644 --- a/llvm/test/CodeGen/LoongArch/stack-realignment.ll +++ b/llvm/test/CodeGen/LoongArch/stack-realignment.ll @@ -4,7 +4,7 @@ ; RUN: llc --mtriple=loongarch64 --verify-machineinstrs < %s \ ; RUN: | FileCheck %s --check-prefix=LA64 -declare void @callee(i8*) +declare void @callee(ptr) define void @caller32() { ; LA32-LABEL: caller32: @@ -47,7 +47,7 @@ define void @caller32() { ; LA64-NEXT: addi.d $sp, $sp, 32 ; LA64-NEXT: ret %1 = alloca i8, align 32 - call void @callee(i8* %1) + call void @callee(ptr %1) ret void } @@ -76,7 +76,7 @@ define void @caller_no_realign32() "no-realign-stack" { ; LA64-NEXT: addi.d $sp, $sp, 16 ; LA64-NEXT: ret %1 = alloca i8, align 32 - call void @callee(i8* %1) + call void @callee(ptr %1) ret void } @@ -121,7 +121,7 @@ define void @caller64() { ; LA64-NEXT: addi.d $sp, $sp, 64 ; LA64-NEXT: ret %1 = alloca i8, align 64 - call void @callee(i8* %1) + call void @callee(ptr %1) ret void } @@ -150,7 +150,7 @@ define void @caller_no_realign64() "no-realign-stack" { ; LA64-NEXT: addi.d $sp, $sp, 16 ; LA64-NEXT: ret %1 = alloca i8, align 64 - call void @callee(i8* %1) + call void @callee(ptr %1) ret void } @@ -195,7 +195,7 @@ define void @caller128() { ; LA64-NEXT: addi.d $sp, $sp, 128 ; LA64-NEXT: ret %1 = alloca i8, align 128 - call void @callee(i8* %1) + call void @callee(ptr %1) ret void } @@ -224,7 +224,7 @@ define void @caller_no_realign128() "no-realign-stack" { ; LA64-NEXT: addi.d $sp, $sp, 16 ; LA64-NEXT: ret %1 = alloca i8, align 128 - call void @callee(i8* %1) + call void @callee(ptr %1) ret void } @@ -269,7 +269,7 @@ define void @caller256() { ; LA64-NEXT: addi.d $sp, $sp, 256 ; LA64-NEXT: ret %1 = alloca i8, align 256 - call void @callee(i8* %1) + call void @callee(ptr %1) ret void } @@ -298,7 +298,7 @@ define void @caller_no_realign256() "no-realign-stack" { ; LA64-NEXT: addi.d $sp, $sp, 16 ; LA64-NEXT: ret %1 = alloca i8, align 256 - call void @callee(i8* %1) + call void @callee(ptr %1) ret void } @@ -343,7 +343,7 @@ define void @caller512() { ; LA64-NEXT: addi.d $sp, $sp, 1024 ; LA64-NEXT: ret %1 = alloca i8, align 512 - call void @callee(i8* %1) + call void @callee(ptr %1) ret void } @@ -372,7 +372,7 @@ define void @caller_no_realign512() "no-realign-stack" { ; LA64-NEXT: addi.d $sp, $sp, 16 ; LA64-NEXT: ret %1 = alloca i8, align 512 - call void @callee(i8* %1) + call void @callee(ptr %1) ret void } @@ -421,7 +421,7 @@ define void @caller1024() { ; LA64-NEXT: addi.d $sp, $sp, 2032 ; LA64-NEXT: ret %1 = alloca i8, align 1024 - call void @callee(i8* %1) + call void @callee(ptr %1) ret void } @@ -450,7 +450,7 @@ define void @caller_no_realign1024() "no-realign-stack" { ; LA64-NEXT: addi.d $sp, $sp, 16 ; LA64-NEXT: ret %1 = alloca i8, align 1024 - call void @callee(i8* %1) + call void @callee(ptr %1) ret void } @@ -507,7 +507,7 @@ define void @caller2048() { ; LA64-NEXT: addi.d $sp, $sp, 2032 ; LA64-NEXT: ret %1 = alloca i8, align 2048 - call void @callee(i8* %1) + call void @callee(ptr %1) ret void } @@ -536,7 +536,7 @@ define void @caller_no_realign2048() "no-realign-stack" { ; LA64-NEXT: addi.d $sp, $sp, 16 ; LA64-NEXT: ret %1 = alloca i8, align 2048 - call void @callee(i8* %1) + call void @callee(ptr %1) ret void } @@ -597,7 +597,7 @@ define void @caller4096() { ; LA64-NEXT: addi.d $sp, $sp, 2032 ; LA64-NEXT: ret %1 = alloca i8, align 4096 - call void @callee(i8* %1) + call void @callee(ptr %1) ret void } @@ -626,6 +626,6 @@ define void @caller_no_realign4096() "no-realign-stack" { ; LA64-NEXT: addi.d $sp, $sp, 16 ; LA64-NEXT: ret %1 = alloca i8, align 4096 - call void @callee(i8* %1) + call void @callee(ptr %1) ret void } -- 2.7.4