[llvm] 5da8124 - AMDGPU: Update constant address spaces used in printf test

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 22 09:39:07 PST 2022


Author: Matt Arsenault
Date: 2022-12-22T12:38:59-05:00
New Revision: 5da812461a533b3eaed9af513bc3efff53910ada

URL: https://github.com/llvm/llvm-project/commit/5da812461a533b3eaed9af513bc3efff53910ada
DIFF: https://github.com/llvm/llvm-project/commit/5da812461a533b3eaed9af513bc3efff53910ada.diff

LOG: AMDGPU: Update constant address spaces used in printf test

This was never updated for the address space number shuffle.

Added: 
    

Modified: 
    llvm/test/CodeGen/AMDGPU/opencl-printf.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/AMDGPU/opencl-printf.ll b/llvm/test/CodeGen/AMDGPU/opencl-printf.ll
index c00b71fc048f..f9c23be1296a 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
 
- at .str = private unnamed_addr addrspace(2) constant [6 x i8] c"%s:%d\00", align 1
+ at .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)*, ...)


        


More information about the llvm-commits mailing list