diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-08-26 15:06:04 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-08-26 15:06:04 +0000 |
commit | d08a9303614355cfdcac5f2c27c09ce809565423 (patch) | |
tree | 4e2da5d0223dc6249c4f7105cb69864fb4162388 /test/CodeGen/R600/load.ll | |
parent | a01cdea9c660dc8b295782a4ab560d0039ff7571 (diff) | |
download | external_llvm-d08a9303614355cfdcac5f2c27c09ce809565423.zip external_llvm-d08a9303614355cfdcac5f2c27c09ce809565423.tar.gz external_llvm-d08a9303614355cfdcac5f2c27c09ce809565423.tar.bz2 |
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/load.ll')
-rw-r--r-- | test/CodeGen/R600/load.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/R600/load.ll b/test/CodeGen/R600/load.ll index ba82506..6cf1af7 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 +} |