aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/R600
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-07-18 21:43:48 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-07-18 21:43:48 +0000
commitac85f3f65ce67f71bb8e4626e0a50d818500e426 (patch)
tree1fd4b72500728463141663d4d28b1ef820038971 /test/CodeGen/R600
parentfc047278c160cf15d99502d8170d431cfcfe8a5b (diff)
downloadexternal_llvm-ac85f3f65ce67f71bb8e4626e0a50d818500e426.zip
external_llvm-ac85f3f65ce67f71bb8e4626e0a50d818500e426.tar.gz
external_llvm-ac85f3f65ce67f71bb8e4626e0a50d818500e426.tar.bz2
R600/SI: Add support for v2f32 loads
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186615 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 44c089b..a1b15bd 100644
--- a/test/CodeGen/R600/load.ll
+++ b/test/CodeGen/R600/load.ll
@@ -41,6 +41,20 @@ entry:
ret void
}
+; load a v2f32 value from the global address space
+; R600-CHECK: @load_v2f32
+; R600-CHECK: VTX_READ_32
+; R600-CHECK: VTX_READ_32
+
+; SI-CHECK: @load_v2f32
+; SI-CHECK: BUFFER_LOAD_DWORDX2
+define void @load_v2f32(<2 x float> addrspace(1)* %out, <2 x float> addrspace(1)* %in) {
+entry:
+ %0 = load <2 x float> addrspace(1)* %in
+ store <2 x float> %0, <2 x float> addrspace(1)* %out
+ ret void
+}
+
; Load an i32 value from the constant address space.
; R600-CHECK: @load_const_addrspace_i32
; R600-CHECK: VTX_READ_32 T{{[0-9]+}}.X, T{{[0-9]+}}.X, 0