1 ; RUN: llc -march=amdgcn < %s | FileCheck %s
2 ; RUN: llc -march=amdgcn < %s -global-isel | FileCheck %s
4 ; CHECK-LABEL: {{^}}unknown_wgs:
6 define amdgpu_kernel void @unknown_wgs() {
7 tail call void @llvm.amdgcn.s.barrier() #0
11 ; CHECK-LABEL: {{^}}flat_wgs_attr_32_128:
13 define amdgpu_kernel void @flat_wgs_attr_32_128() #1 {
14 tail call void @llvm.amdgcn.s.barrier() #0
18 ; CHECK-LABEL: {{^}}flat_wgs_attr_32_64:
20 ; CHECK-NEXT: ; wave barrier
21 ; CHECK-NEXT: s_endpgm
22 define amdgpu_kernel void @flat_wgs_attr_32_64() #2 {
23 tail call void @llvm.amdgcn.s.barrier() #0
27 declare void @llvm.amdgcn.s.barrier() #0
29 attributes #0 = { convergent nounwind }
30 attributes #1 = { nounwind "amdgpu-flat-work-group-size"="32,128" }
31 attributes #2 = { nounwind "amdgpu-flat-work-group-size"="32,64" }