diff --git a/llvm/test/CodeGen/AMDGPU/opencl-printf.ll b/llvm/test/CodeGen/AMDGPU/opencl-printf.ll index c00b71fc048f9..f9c23be1296ac 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)*, ...)