diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-07-18 21:43:42 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-07-18 21:43:42 +0000 |
commit | fc047278c160cf15d99502d8170d431cfcfe8a5b (patch) | |
tree | 54dd48fa3d3a0da4ed77dbb09942d678b16e0347 /test | |
parent | f5660aab413539bd94cfea8cd88fed80c54cd984 (diff) | |
download | external_llvm-fc047278c160cf15d99502d8170d431cfcfe8a5b.zip external_llvm-fc047278c160cf15d99502d8170d431cfcfe8a5b.tar.gz external_llvm-fc047278c160cf15d99502d8170d431cfcfe8a5b.tar.bz2 |
R600/SI: Add support for v2f32 stores
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186614 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/R600/store.ll | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/CodeGen/R600/store.ll b/test/CodeGen/R600/store.ll index f8c6f84..d233c73 100644 --- a/test/CodeGen/R600/store.ll +++ b/test/CodeGen/R600/store.ll @@ -15,6 +15,24 @@ define void @store_f32(float addrspace(1)* %out, float %in) { ret void } +; vec2 floating-point stores +; EG-CHECK: @store_v2f32 +; EG-CHECK: RAT_WRITE_CACHELESS_32_eg +; EG-CHECK-NEXT: RAT_WRITE_CACHELESS_32_eg +; CM-CHECK: @store_v2f32 +; CM-CHECK: EXPORT_RAT_INST_STORE_DWORD +; CM-CHECK-NEXT: EXPORT_RAT_INST_STORE_DWORD +; SI-CHECK: @store_v2f32 +; SI-CHECK: BUFFER_STORE_DWORDX2 + +define void @store_v2f32(<2 x float> addrspace(1)* %out, float %a, float %b) { +entry: + %0 = insertelement <2 x float> <float 0.0, float 0.0>, float %a, i32 0 + %1 = insertelement <2 x float> %0, float %b, i32 0 + store <2 x float> %1, <2 x float> addrspace(1)* %out + ret void +} + ; The stores in this function are combined by the optimizer to create a ; 64-bit store with 32-bit alignment. This is legal for SI and the legalizer ; should not try to split the 64-bit store back into 2 32-bit stores. |