summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/cgp-addressing-modes-flat.ll
diff options
context:
space:
mode:
authorYaxun Liu <Yaxun.Liu@amd.com>2018-02-13 18:00:25 +0000
committerYaxun Liu <Yaxun.Liu@amd.com>2018-02-13 18:00:25 +0000
commit0124b5484cdd254571e8b17b0ac510aec5edf1a5 (patch)
treecab176450e673f3e1d9caedcd290edd1884660f4 /llvm/test/CodeGen/AMDGPU/cgp-addressing-modes-flat.ll
parent18c0247852f717b3d72cbf0f8635e3108ff10613 (diff)
downloadbcm5719-llvm-0124b5484cdd254571e8b17b0ac510aec5edf1a5.tar.gz
bcm5719-llvm-0124b5484cdd254571e8b17b0ac510aec5edf1a5.zip
[AMDGPU] Change constant addr space to 4
Differential Revision: https://reviews.llvm.org/D43170 llvm-svn: 325030
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/cgp-addressing-modes-flat.ll')
-rw-r--r--llvm/test/CodeGen/AMDGPU/cgp-addressing-modes-flat.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/cgp-addressing-modes-flat.ll b/llvm/test/CodeGen/AMDGPU/cgp-addressing-modes-flat.ll
index 714d433c698..f2addc16246 100644
--- a/llvm/test/CodeGen/AMDGPU/cgp-addressing-modes-flat.ll
+++ b/llvm/test/CodeGen/AMDGPU/cgp-addressing-modes-flat.ll
@@ -87,12 +87,12 @@ define amdgpu_kernel void @test_sink_noop_addrspacecast_flat_to_constant_i32(i32
entry:
%out.gep = getelementptr i32, i32* %out, i64 999999
%in.gep = getelementptr i32, i32* %in, i64 7
- %cast = addrspacecast i32* %in.gep to i32 addrspace(2)*
+ %cast = addrspacecast i32* %in.gep to i32 addrspace(4)*
%tmp0 = icmp eq i32 %cond, 0
br i1 %tmp0, label %endif, label %if
if:
- %tmp1 = load i32, i32 addrspace(2)* %cast
+ %tmp1 = load i32, i32 addrspace(4)* %cast
br label %endif
endif:
OpenPOWER on IntegriCloud