1 ; RUN: llc -march=amdgcn < %s | FileCheck %s
3 ; CHECK-LABEL: {{^}}unknown_wgs:
5 define amdgpu_kernel void @unknown_wgs() {
6 tail call void @llvm.amdgcn.s.barrier() #0
10 ; CHECK-LABEL: {{^}}flat_wgs_attr_32_128:
12 define amdgpu_kernel void @flat_wgs_attr_32_128() #1 {
13 tail call void @llvm.amdgcn.s.barrier() #0
17 ; CHECK-LABEL: {{^}}flat_wgs_attr_32_64:
19 ; CHECK-NEXT: ; wave barrier
20 ; CHECK-NEXT: s_endpgm
21 define amdgpu_kernel void @flat_wgs_attr_32_64() #2 {
22 tail call void @llvm.amdgcn.s.barrier() #0
26 declare void @llvm.amdgcn.s.barrier() #0
28 attributes #0 = { convergent nounwind }
29 attributes #1 = { nounwind "amdgpu-flat-work-group-size"="32,128" }
30 attributes #2 = { nounwind "amdgpu-flat-work-group-size"="32,64" }