summaryrefslogtreecommitdiffstats
path: root/llvm/test
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
commit35bb18c2a785535468344dc2508a98d7ca0614af (patch)
tree0f9fc7863fece22ee40a05d26ca5359a098f2a2e /llvm/test
parentc6f4a29ed5064ae02fc90e50094ba5d108bf21d2 (diff)
downloadbcm5719-llvm-35bb18c2a785535468344dc2508a98d7ca0614af.tar.gz
bcm5719-llvm-35bb18c2a785535468344dc2508a98d7ca0614af.zip
R600: Add support for vector local memory loads
llvm-svn: 189226
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/R600/load.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/R600/load.ll b/llvm/test/CodeGen/R600/load.ll
index ba8250650fc..6cf1af71aea 100644
--- a/llvm/test/CodeGen/R600/load.ll
+++ b/llvm/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
+}
OpenPOWER on IntegriCloud