From 5da812461a533b3eaed9af513bc3efff53910ada Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Thu, 22 Dec 2022 10:22:11 -0500 Subject: [PATCH] AMDGPU: Update constant address spaces used in printf test This was never updated for the address space number shuffle. --- llvm/test/CodeGen/AMDGPU/opencl-printf.ll | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm/test/CodeGen/AMDGPU/opencl-printf.ll b/llvm/test/CodeGen/AMDGPU/opencl-printf.ll index c00b71f..f9c23be 100644 --- a/llvm/test/CodeGen/AMDGPU/opencl-printf.ll +++ b/llvm/test/CodeGen/AMDGPU/opencl-printf.ll @@ -6,7 +6,7 @@ ; FUNC-LABEL: @test_kernel( ; R600-LABEL: entry ; R600-NOT: call i8 addrspace(1)* @__printf_alloc -; R600: call i32 (i8 addrspace(2)*, ...) @printf(i8 addrspace(2)* getelementptr inbounds ([6 x i8], [6 x i8] addrspace(2)* @.str, i32 0, i32 0), i8 addrspace(5)* %arraydecay, i32 %n) +; R600: call i32 (i8 addrspace(4)*, ...) @printf(i8 addrspace(4)* getelementptr inbounds ([6 x i8], [6 x i8] addrspace(4)* @.str, i32 0, i32 0), i8 addrspace(5)* %arraydecay, i32 %n) ; GCN-LABEL: entry ; GCN: call i8 addrspace(1)* @__printf_alloc ; GCN-LABEL: entry.split @@ -22,14 +22,14 @@ ; GCN: %PrintBuffPtrCast1 = bitcast i8 addrspace(1)* %PrintBuffNextPtr to i32 addrspace(1)* ; GCN: store i32 %n, i32 addrspace(1)* %PrintBuffPtrCast1 -@.str = private unnamed_addr addrspace(2) constant [6 x i8] c"%s:%d\00", align 1 +@.str = private unnamed_addr addrspace(4) constant [6 x i8] c"%s:%d\00", align 1 define amdgpu_kernel void @test_kernel(i32 %n) { entry: %str = alloca [9 x i8], align 1, addrspace(5) %arraydecay = getelementptr inbounds [9 x i8], [9 x i8] addrspace(5)* %str, i32 0, i32 0 - %call1 = call i32 (i8 addrspace(2)*, ...) @printf(i8 addrspace(2)* getelementptr inbounds ([6 x i8], [6 x i8] addrspace(2)* @.str, i32 0, i32 0), i8 addrspace(5)* %arraydecay, i32 %n) + %call1 = call i32 (i8 addrspace(4)*, ...) @printf(i8 addrspace(4)* getelementptr inbounds ([6 x i8], [6 x i8] addrspace(4)* @.str, i32 0, i32 0), i8 addrspace(5)* %arraydecay, i32 %n) ret void } -declare i32 @printf(i8 addrspace(2)*, ...) +declare i32 @printf(i8 addrspace(4)*, ...) -- 2.7.4