2015-01-29 00:04:26 +08:00
|
|
|
; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=kaveri | FileCheck --check-prefix=HSA %s
|
2014-12-03 01:05:41 +08:00
|
|
|
|
2015-06-27 05:14:58 +08:00
|
|
|
; HSA: {{^}}simple:
|
2015-01-24 07:59:08 +08:00
|
|
|
; HSA: .section .hsa.version
|
|
|
|
; HSA-NEXT: .ascii "HSA Code Unit:0.0:AMD:0.1:GFX8.1:0"
|
2015-06-27 05:14:58 +08:00
|
|
|
; Test that the amd_kernel_code_t object is emitted
|
|
|
|
; HSA: .asciz
|
2015-06-27 05:15:03 +08:00
|
|
|
; HSA: s_load_dwordx2 s[{{[0-9]+:[0-9]+}}], s[0:1], 0x0
|
2014-12-03 01:05:41 +08:00
|
|
|
; 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
|
|
|
|
}
|