summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-08-26 15:05:49 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-08-26 15:05:49 +0000
commit8e78012457682d335ee97cf2859dfe03b7e2ae93 (patch)
tree5eff0980c06803d29bb1687fe9fb04a64952ddbb /test
parent7a0282daeb214f14d75249cc2d90302c44586c4e (diff)
downloadllvm-8e78012457682d335ee97cf2859dfe03b7e2ae93.tar.gz
llvm-8e78012457682d335ee97cf2859dfe03b7e2ae93.tar.bz2
llvm-8e78012457682d335ee97cf2859dfe03b7e2ae93.tar.xz
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')
-rw-r--r--test/CodeGen/R600/store.ll18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/CodeGen/R600/store.ll b/test/CodeGen/R600/store.ll
index 9c80798eea..50c91b42fa 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