diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-04-05 23:31:51 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-04-05 23:31:51 +0000 |
commit | 17ea10cb792832c99677afa13b9b866098bc4679 (patch) | |
tree | e26a4cf96b4386dc4053e845a967abb7bf893ae0 /test/CodeGen/R600/store.ll | |
parent | e340b7728a0936429fc1938c36fc4bdccb5fdc19 (diff) | |
download | external_llvm-17ea10cb792832c99677afa13b9b866098bc4679.zip external_llvm-17ea10cb792832c99677afa13b9b866098bc4679.tar.gz external_llvm-17ea10cb792832c99677afa13b9b866098bc4679.tar.bz2 |
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/store.ll')
-rw-r--r-- | test/CodeGen/R600/store.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/R600/store.ll b/test/CodeGen/R600/store.ll new file mode 100644 index 0000000..4382bff --- /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 +} |