From 794c8c0f783eb95a43f0fca5d1d75b60eb4d237c Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Tue, 2 Dec 2014 17:05:41 +0000 Subject: R600/SI: Set the ATC bit on all resource descriptors for the HSA runtime llvm-svn: 223125 --- llvm/test/CodeGen/R600/hsa.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 llvm/test/CodeGen/R600/hsa.ll (limited to 'llvm/test') 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 +} -- cgit v1.2.3