diff options
| author | Tom Stellard <thomas.stellard@amd.com> | 2014-12-02 17:05:41 +0000 |
|---|---|---|
| committer | Tom Stellard <thomas.stellard@amd.com> | 2014-12-02 17:05:41 +0000 |
| commit | 794c8c0f783eb95a43f0fca5d1d75b60eb4d237c (patch) | |
| tree | 45ab54274b7f959ed5f79d8f853db44f943f12eb /llvm/test | |
| parent | 4082a6c2ec2c27414c65852bc175036f440f10f5 (diff) | |
| download | bcm5719-llvm-794c8c0f783eb95a43f0fca5d1d75b60eb4d237c.tar.gz bcm5719-llvm-794c8c0f783eb95a43f0fca5d1d75b60eb4d237c.zip | |
R600/SI: Set the ATC bit on all resource descriptors for the HSA runtime
llvm-svn: 223125
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/CodeGen/R600/hsa.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/R600/hsa.ll b/llvm/test/CodeGen/R600/hsa.ll new file mode 100644 index 00000000000..2e79866362a --- /dev/null +++ b/llvm/test/CodeGen/R600/hsa.ll @@ -0,0 +1,12 @@ +; RUN: llc < %s -mtriple=r600--amdhsa -mcpu=kaveri | FileCheck --check-prefix=HSA %s + +; HSA: {{^}}simple: +; Make sure we are setting the ATC bit: +; HSA: s_mov_b32 s[[HI:[0-9]]], 0x100f000 +; HSA: buffer_store_dword v{{[0-9]+}}, s[0:[[HI]]], 0 + +define void @simple(i32 addrspace(1)* %out) { +entry: + store i32 0, i32 addrspace(1)* %out + ret void +} |

