summaryrefslogtreecommitdiff
path: root/test/CodeGen/R600
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-04-05 23:31:51 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-04-05 23:31:51 +0000
commit17ea10cb792832c99677afa13b9b866098bc4679 (patch)
treee26a4cf96b4386dc4053e845a967abb7bf893ae0 /test/CodeGen/R600
parente340b7728a0936429fc1938c36fc4bdccb5fdc19 (diff)
downloadllvm-17ea10cb792832c99677afa13b9b866098bc4679.tar.gz
llvm-17ea10cb792832c99677afa13b9b866098bc4679.tar.bz2
llvm-17ea10cb792832c99677afa13b9b866098bc4679.tar.xz
R600/SI: Add support for buffer stores v2
v2: - Use the ADDR64 bit Reviewed-by: Christian König <christian.koenig@amd.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178931 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/R600')
-rw-r--r--test/CodeGen/R600/imm.ll3
-rw-r--r--test/CodeGen/R600/store.ll11
2 files changed, 11 insertions, 3 deletions
diff --git a/test/CodeGen/R600/imm.ll b/test/CodeGen/R600/imm.ll
index 02b73096ce..979efb00e7 100644
--- a/test/CodeGen/R600/imm.ll
+++ b/test/CodeGen/R600/imm.ll
@@ -1,8 +1,5 @@
; RUN: llc < %s -march=r600 -mcpu=verde | FileCheck %s
-; XXX: Enable once SI supports buffer stores
-; XFAIL: *
-
; Use a 64-bit value with lo bits that can be represented as an inline constant
; CHECK: @i64_imm_inline_lo
; CHECK: S_MOV_B32 [[LO:SGPR[0-9]+]], 5
diff --git a/test/CodeGen/R600/store.ll b/test/CodeGen/R600/store.ll
new file mode 100644
index 0000000000..4382bfff49
--- /dev/null
+++ b/test/CodeGen/R600/store.ll
@@ -0,0 +1,11 @@
+; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck --check-prefix=EG-CHECK %s
+; RUN: llc < %s -march=r600 -mcpu=verde | FileCheck --check-prefix=SI-CHECK %s
+
+; CHECK: @store_float
+; EG-CHECK: RAT_WRITE_CACHELESS_32_eg T{{[0-9]+\.X, T[0-9]+\.X}}, 1
+; SI-CHECK: BUFFER_STORE_DWORD
+
+define void @store_float(float addrspace(1)* %out, float %in) {
+ store float %in, float addrspace(1)* %out
+ ret void
+}