1 ; RUN: llc -mcpu=gfx906 -o - < %s | FileCheck --check-prefix=CHECK %s
2 target triple = "amdgcn-amd-amdhsa"
4 ; Check the group segment has size 4, not zero.
5 ; CHECK: .amdhsa_kernel __device_start
6 ; CHECK: .amdhsa_group_segment_fixed_size 4
7 ; CHECK: .end_amdhsa_kernel
9 @global_barrier_state = hidden addrspace(3) global i32 undef, align 4
13 %0 = atomicrmw add ptr addrspace(3) @global_barrier_state, i32 1 acq_rel, align 4
17 define amdgpu_kernel void @__device_start() {
23 attributes #0 = { noinline }