diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-08-26 15:05:49 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-08-26 15:05:49 +0000 |
commit | 8e78012457682d335ee97cf2859dfe03b7e2ae93 (patch) | |
tree | 5eff0980c06803d29bb1687fe9fb04a64952ddbb /test/CodeGen/R600/store.ll | |
parent | 7a0282daeb214f14d75249cc2d90302c44586c4e (diff) | |
download | external_llvm-8e78012457682d335ee97cf2859dfe03b7e2ae93.zip external_llvm-8e78012457682d335ee97cf2859dfe03b7e2ae93.tar.gz external_llvm-8e78012457682d335ee97cf2859dfe03b7e2ae93.tar.bz2 |
R600: Add support for i8 and i16 local memory stores
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189223 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/R600/store.ll')
-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 9c80798..50c91b4 100644 --- a/test/CodeGen/R600/store.ll +++ b/test/CodeGen/R600/store.ll @@ -172,6 +172,24 @@ entry: ; Local Address Space ;===------------------------------------------------------------------------===; +; EG-CHECK: @store_local_i8 +; EG-CHECK: LDS_BYTE_WRITE +; SI-CHECK: @store_local_i8 +; SI-CHECK: DS_WRITE_B8 +define void @store_local_i8(i8 addrspace(3)* %out, i8 %in) { + store i8 %in, i8 addrspace(3)* %out + ret void +} + +; EG-CHECK: @store_local_i16 +; EG-CHECK: LDS_SHORT_WRITE +; SI-CHECK: @store_local_i16 +; SI-CHECK: DS_WRITE_B16 +define void @store_local_i16(i16 addrspace(3)* %out, i16 %in) { + store i16 %in, i16 addrspace(3)* %out + ret void +} + ; EG-CHECK: @store_local_v2i16 ; EG-CHECK: LDS_WRITE ; CM-CHECK: @store_local_v2i16 |