AMDGPU/SI: There are no implicit kernel args in the amdhsa ABI
[oota-llvm.git] / test / CodeGen / AMDGPU / hsa.ll
1 ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=kaveri | FileCheck --check-prefix=HSA %s
2
3 ; HSA: {{^}}simple:
4 ; HSA: .section        .hsa.version
5 ; HSA-NEXT: .ascii  "HSA Code Unit:0.0:AMD:0.1:GFX8.1:0"
6 ; Test that the amd_kernel_code_t object is emitted
7 ; HSA: .asciz
8 ; HSA: s_load_dwordx2 s[{{[0-9]+:[0-9]+}}], s[0:1], 0x0
9 ; Make sure we are setting the ATC bit:
10 ; HSA: s_mov_b32 s[[HI:[0-9]]], 0x100f000
11 ; HSA: buffer_store_dword v{{[0-9]+}}, s[0:[[HI]]], 0
12
13 define void @simple(i32 addrspace(1)* %out) {
14 entry:
15   store i32 0, i32 addrspace(1)* %out
16   ret void
17 }