summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/private-element-size.ll
diff options
context:
space:
mode:
authorYaxun Liu <Yaxun.Liu@amd.com>2018-02-02 16:07:16 +0000
committerYaxun Liu <Yaxun.Liu@amd.com>2018-02-02 16:07:16 +0000
commit2a22c5deff3830d50fbc3f877ab30af9f42792f9 (patch)
tree25b57e509727b39c0a06715cccf5dbab3e1ea67e /llvm/test/CodeGen/AMDGPU/private-element-size.ll
parenta43e9653bbb388d7fe3d58541bdf13612705cc8f (diff)
downloadbcm5719-llvm-2a22c5deff3830d50fbc3f877ab30af9f42792f9.tar.gz
bcm5719-llvm-2a22c5deff3830d50fbc3f877ab30af9f42792f9.zip
[AMDGPU] Switch to the new addr space mapping by default
This requires corresponding clang change. Differential Revision: https://reviews.llvm.org/D40955 llvm-svn: 324101
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/private-element-size.ll')
-rw-r--r--llvm/test/CodeGen/AMDGPU/private-element-size.ll70
1 files changed, 35 insertions, 35 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/private-element-size.ll b/llvm/test/CodeGen/AMDGPU/private-element-size.ll
index f8054307970..205a4dbc521 100644
--- a/llvm/test/CodeGen/AMDGPU/private-element-size.ll
+++ b/llvm/test/CodeGen/AMDGPU/private-element-size.ll
@@ -43,13 +43,13 @@ entry:
%gep.index = getelementptr inbounds i32, i32 addrspace(1)* %index.array, i64 %idxprom
%index.load = load i32, i32 addrspace(1)* %gep.index
%index = and i32 %index.load, 2
- %alloca = alloca [2 x <4 x i32>], align 16
- %gep0 = getelementptr inbounds [2 x <4 x i32>], [2 x <4 x i32>]* %alloca, i32 0, i32 0
- %gep1 = getelementptr inbounds [2 x <4 x i32>], [2 x <4 x i32>]* %alloca, i32 0, i32 1
- store <4 x i32> zeroinitializer, <4 x i32>* %gep0
- store <4 x i32> <i32 1, i32 2, i32 3, i32 4>, <4 x i32>* %gep1
- %gep2 = getelementptr inbounds [2 x <4 x i32>], [2 x <4 x i32>]* %alloca, i32 0, i32 %index
- %load = load <4 x i32>, <4 x i32>* %gep2
+ %alloca = alloca [2 x <4 x i32>], align 16, addrspace(5)
+ %gep0 = getelementptr inbounds [2 x <4 x i32>], [2 x <4 x i32>] addrspace(5)* %alloca, i32 0, i32 0
+ %gep1 = getelementptr inbounds [2 x <4 x i32>], [2 x <4 x i32>] addrspace(5)* %alloca, i32 0, i32 1
+ store <4 x i32> zeroinitializer, <4 x i32> addrspace(5)* %gep0
+ store <4 x i32> <i32 1, i32 2, i32 3, i32 4>, <4 x i32> addrspace(5)* %gep1
+ %gep2 = getelementptr inbounds [2 x <4 x i32>], [2 x <4 x i32>] addrspace(5)* %alloca, i32 0, i32 %index
+ %load = load <4 x i32>, <4 x i32> addrspace(5)* %gep2
store <4 x i32> %load, <4 x i32> addrspace(1)* %out
ret void
}
@@ -113,13 +113,13 @@ entry:
%gep.index = getelementptr inbounds i32, i32 addrspace(1)* %index.array, i64 %idxprom
%index.load = load i32, i32 addrspace(1)* %gep.index
%index = and i32 %index.load, 2
- %alloca = alloca [2 x <8 x i32>], align 16
- %gep0 = getelementptr inbounds [2 x <8 x i32>], [2 x <8 x i32>]* %alloca, i32 0, i32 0
- %gep1 = getelementptr inbounds [2 x <8 x i32>], [2 x <8 x i32>]* %alloca, i32 0, i32 1
- store <8 x i32> zeroinitializer, <8 x i32>* %gep0
- store <8 x i32> <i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8>, <8 x i32>* %gep1
- %gep2 = getelementptr inbounds [2 x <8 x i32>], [2 x <8 x i32>]* %alloca, i32 0, i32 %index
- %load = load <8 x i32>, <8 x i32>* %gep2
+ %alloca = alloca [2 x <8 x i32>], align 16, addrspace(5)
+ %gep0 = getelementptr inbounds [2 x <8 x i32>], [2 x <8 x i32>] addrspace(5)* %alloca, i32 0, i32 0
+ %gep1 = getelementptr inbounds [2 x <8 x i32>], [2 x <8 x i32>] addrspace(5)* %alloca, i32 0, i32 1
+ store <8 x i32> zeroinitializer, <8 x i32> addrspace(5)* %gep0
+ store <8 x i32> <i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8>, <8 x i32> addrspace(5)* %gep1
+ %gep2 = getelementptr inbounds [2 x <8 x i32>], [2 x <8 x i32>] addrspace(5)* %alloca, i32 0, i32 %index
+ %load = load <8 x i32>, <8 x i32> addrspace(5)* %gep2
store <8 x i32> %load, <8 x i32> addrspace(1)* %out
ret void
}
@@ -150,13 +150,13 @@ entry:
%gep.index = getelementptr inbounds i32, i32 addrspace(1)* %index.array, i64 %idxprom
%index.load = load i32, i32 addrspace(1)* %gep.index
%index = and i32 %index.load, 2
- %alloca = alloca [2 x i64], align 16
- %gep0 = getelementptr inbounds [2 x i64], [2 x i64]* %alloca, i32 0, i32 0
- %gep1 = getelementptr inbounds [2 x i64], [2 x i64]* %alloca, i32 0, i32 1
- store i64 0, i64* %gep0
- store i64 34359738602, i64* %gep1
- %gep2 = getelementptr inbounds [2 x i64], [2 x i64]* %alloca, i32 0, i32 %index
- %load = load i64, i64* %gep2
+ %alloca = alloca [2 x i64], align 16, addrspace(5)
+ %gep0 = getelementptr inbounds [2 x i64], [2 x i64] addrspace(5)* %alloca, i32 0, i32 0
+ %gep1 = getelementptr inbounds [2 x i64], [2 x i64] addrspace(5)* %alloca, i32 0, i32 1
+ store i64 0, i64 addrspace(5)* %gep0
+ store i64 34359738602, i64 addrspace(5)* %gep1
+ %gep2 = getelementptr inbounds [2 x i64], [2 x i64] addrspace(5)* %alloca, i32 0, i32 %index
+ %load = load i64, i64 addrspace(5)* %gep2
store i64 %load, i64 addrspace(1)* %out
ret void
}
@@ -186,13 +186,13 @@ entry:
%gep.index = getelementptr inbounds i32, i32 addrspace(1)* %index.array, i64 %idxprom
%index.load = load i32, i32 addrspace(1)* %gep.index
%index = and i32 %index.load, 2
- %alloca = alloca [2 x double], align 16
- %gep0 = getelementptr inbounds [2 x double], [2 x double]* %alloca, i32 0, i32 0
- %gep1 = getelementptr inbounds [2 x double], [2 x double]* %alloca, i32 0, i32 1
- store double 0.0, double* %gep0
- store double 4.0, double* %gep1
- %gep2 = getelementptr inbounds [2 x double], [2 x double]* %alloca, i32 0, i32 %index
- %load = load double, double* %gep2
+ %alloca = alloca [2 x double], align 16, addrspace(5)
+ %gep0 = getelementptr inbounds [2 x double], [2 x double] addrspace(5)* %alloca, i32 0, i32 0
+ %gep1 = getelementptr inbounds [2 x double], [2 x double] addrspace(5)* %alloca, i32 0, i32 1
+ store double 0.0, double addrspace(5)* %gep0
+ store double 4.0, double addrspace(5)* %gep1
+ %gep2 = getelementptr inbounds [2 x double], [2 x double] addrspace(5)* %alloca, i32 0, i32 %index
+ %load = load double, double addrspace(5)* %gep2
store double %load, double addrspace(1)* %out
ret void
}
@@ -235,13 +235,13 @@ entry:
%gep.index = getelementptr inbounds i32, i32 addrspace(1)* %index.array, i64 %idxprom
%index.load = load i32, i32 addrspace(1)* %gep.index
%index = and i32 %index.load, 2
- %alloca = alloca [2 x <2 x i64>], align 16
- %gep0 = getelementptr inbounds [2 x <2 x i64>], [2 x <2 x i64>]* %alloca, i32 0, i32 0
- %gep1 = getelementptr inbounds [2 x <2 x i64>], [2 x <2 x i64>]* %alloca, i32 0, i32 1
- store <2 x i64> zeroinitializer, <2 x i64>* %gep0
- store <2 x i64> <i64 1, i64 2>, <2 x i64>* %gep1
- %gep2 = getelementptr inbounds [2 x <2 x i64>], [2 x <2 x i64>]* %alloca, i32 0, i32 %index
- %load = load <2 x i64>, <2 x i64>* %gep2
+ %alloca = alloca [2 x <2 x i64>], align 16, addrspace(5)
+ %gep0 = getelementptr inbounds [2 x <2 x i64>], [2 x <2 x i64>] addrspace(5)* %alloca, i32 0, i32 0
+ %gep1 = getelementptr inbounds [2 x <2 x i64>], [2 x <2 x i64>] addrspace(5)* %alloca, i32 0, i32 1
+ store <2 x i64> zeroinitializer, <2 x i64> addrspace(5)* %gep0
+ store <2 x i64> <i64 1, i64 2>, <2 x i64> addrspace(5)* %gep1
+ %gep2 = getelementptr inbounds [2 x <2 x i64>], [2 x <2 x i64>] addrspace(5)* %alloca, i32 0, i32 %index
+ %load = load <2 x i64>, <2 x i64> addrspace(5)* %gep2
store <2 x i64> %load, <2 x i64> addrspace(1)* %out
ret void
}
OpenPOWER on IntegriCloud