aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/R600/store.ll
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-08-16 01:12:00 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-08-16 01:12:00 +0000
commit4781d314b7b0bd239dc3986b4157726e80a270ba (patch)
tree14e00a8ea62034836af2f92ca88147267fbee245 /test/CodeGen/R600/store.ll
parent6b88cdb34cc78f815946b8ebe6c2332d084526ad (diff)
downloadexternal_llvm-4781d314b7b0bd239dc3986b4157726e80a270ba.zip
external_llvm-4781d314b7b0bd239dc3986b4157726e80a270ba.tar.gz
external_llvm-4781d314b7b0bd239dc3986b4157726e80a270ba.tar.bz2
R600: Add support for v4i32 stores on Cayman
Tested-by: Aaron Watry <awatry@gmail.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188518 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/R600/store.ll')
-rw-r--r--test/CodeGen/R600/store.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/R600/store.ll b/test/CodeGen/R600/store.ll
index 5dc0a84..f2a8dd7 100644
--- a/test/CodeGen/R600/store.ll
+++ b/test/CodeGen/R600/store.ll
@@ -31,6 +31,20 @@ entry:
ret void
}
+; EG-CHECK: @store_v4i32
+; EG-CHECK: MEM_RAT_CACHELESS STORE_RAW
+; EG-CHECK-NOT: MEM_RAT_CACHELESS STORE_RAW
+; CM-CHECK: @store_v4i32
+; CM-CHECK: MEM_RAT_CACHELESS STORE_DWORD
+; CM-CHECK-NOT: MEM_RAT_CACHELESS STORE_DWORD
+; SI-CHECK: @store_v4i32
+; SI-CHECK: BUFFER_STORE_DWORDX4
+define void @store_v4i32(<4 x i32> addrspace(1)* %out, <4 x i32> %in) {
+entry:
+ store <4 x i32> %in, <4 x i32> 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.