summaryrefslogtreecommitdiff
path: root/test/CodeGen/R600
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-08-26 15:06:04 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-08-26 15:06:04 +0000
commitd08a9303614355cfdcac5f2c27c09ce809565423 (patch)
tree4e2da5d0223dc6249c4f7105cb69864fb4162388 /test/CodeGen/R600
parenta01cdea9c660dc8b295782a4ab560d0039ff7571 (diff)
downloadllvm-d08a9303614355cfdcac5f2c27c09ce809565423.tar.gz
llvm-d08a9303614355cfdcac5f2c27c09ce809565423.tar.bz2
llvm-d08a9303614355cfdcac5f2c27c09ce809565423.tar.xz
R600: Add support for vector local memory loads
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189226 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/R600')
-rw-r--r--test/CodeGen/R600/load.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/R600/load.ll b/test/CodeGen/R600/load.ll
index ba8250650f..6cf1af71ae 100644
--- a/test/CodeGen/R600/load.ll
+++ b/test/CodeGen/R600/load.ll
@@ -516,3 +516,17 @@ entry:
store float %0, float addrspace(1)* %out
ret void
}
+
+; load a v2f32 value from the local address space
+; R600-CHECK: @load_v2f32_local
+; R600-CHECK: LDS_READ_RET
+; R600-CHECK: LDS_READ_RET
+; SI-CHECK: @load_v2f32_local
+; SI-CHECK: DS_READ_B32
+; SI-CHECK: DS_READ_B32
+define void @load_v2f32_local(<2 x float> addrspace(1)* %out, <2 x float> addrspace(3)* %in) {
+entry:
+ %0 = load <2 x float> addrspace(3)* %in
+ store <2 x float> %0, <2 x float> addrspace(1)* %out
+ ret void
+}