summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/store-private.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/store-private.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/store-private.ll')
-rw-r--r--llvm/test/CodeGen/AMDGPU/store-private.ll8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/store-private.ll b/llvm/test/CodeGen/AMDGPU/store-private.ll
index 617511a24b1..f9fc75023d4 100644
--- a/llvm/test/CodeGen/AMDGPU/store-private.ll
+++ b/llvm/test/CodeGen/AMDGPU/store-private.ll
@@ -689,11 +689,11 @@ entry:
; XSI: buffer_store_dwordx2
; SI: buffer_store_dword
; SI: buffer_store_dword
-define amdgpu_kernel void @vecload2(i32 addrspace(5)* nocapture %out, i32 addrspace(2)* nocapture %mem) #0 {
+define amdgpu_kernel void @vecload2(i32 addrspace(5)* nocapture %out, i32 addrspace(4)* nocapture %mem) #0 {
entry:
- %0 = load i32, i32 addrspace(2)* %mem, align 4
- %arrayidx1.i = getelementptr inbounds i32, i32 addrspace(2)* %mem, i64 1
- %1 = load i32, i32 addrspace(2)* %arrayidx1.i, align 4
+ %0 = load i32, i32 addrspace(4)* %mem, align 4
+ %arrayidx1.i = getelementptr inbounds i32, i32 addrspace(4)* %mem, i64 1
+ %1 = load i32, i32 addrspace(4)* %arrayidx1.i, align 4
store i32 %0, i32 addrspace(5)* %out, align 4
%arrayidx1 = getelementptr inbounds i32, i32 addrspace(5)* %out, i64 1
store i32 %1, i32 addrspace(5)* %arrayidx1, align 4
OpenPOWER on IntegriCloud