blob: 5ce3beaa16c0e9e2428db22a9314ccee766f27fc [file] [log] [blame]
Tom Stellard794c8c02014-12-02 17:05:41 +00001; RUN: llc < %s -mtriple=r600--amdhsa -mcpu=kaveri | FileCheck --check-prefix=HSA %s
2
3; HSA: {{^}}simple:
Tom Stellardedd188c2015-01-23 23:59:08 +00004; HSA: .section .hsa.version
5; HSA-NEXT: .ascii "HSA Code Unit:0.0:AMD:0.1:GFX8.1:0"
Tom Stellard794c8c02014-12-02 17:05:41 +00006; Make sure we are setting the ATC bit:
7; HSA: s_mov_b32 s[[HI:[0-9]]], 0x100f000
8; HSA: buffer_store_dword v{{[0-9]+}}, s[0:[[HI]]], 0
9
10define void @simple(i32 addrspace(1)* %out) {
11entry:
12 store i32 0, i32 addrspace(1)* %out
13 ret void
14}