2017-04-07 00:48:30 +08:00
|
|
|
; RUN: llc -march=amdgcn < %s | FileCheck %s
|
2020-08-26 18:41:39 +08:00
|
|
|
; RUN: llc -march=amdgcn < %s -global-isel | FileCheck %s
|
2017-04-07 00:48:30 +08:00
|
|
|
|
|
|
|
; CHECK-LABEL: {{^}}unknown_wgs:
|
|
|
|
; CHECK: s_barrier
|
|
|
|
define amdgpu_kernel void @unknown_wgs() {
|
|
|
|
tail call void @llvm.amdgcn.s.barrier() #0
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; CHECK-LABEL: {{^}}flat_wgs_attr_32_128:
|
|
|
|
; CHECK: s_barrier
|
|
|
|
define amdgpu_kernel void @flat_wgs_attr_32_128() #1 {
|
|
|
|
tail call void @llvm.amdgcn.s.barrier() #0
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; CHECK-LABEL: {{^}}flat_wgs_attr_32_64:
|
|
|
|
; CHECK: :
|
|
|
|
; CHECK-NEXT: ; wave barrier
|
|
|
|
; CHECK-NEXT: s_endpgm
|
|
|
|
define amdgpu_kernel void @flat_wgs_attr_32_64() #2 {
|
|
|
|
tail call void @llvm.amdgcn.s.barrier() #0
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void @llvm.amdgcn.s.barrier() #0
|
|
|
|
|
|
|
|
attributes #0 = { convergent nounwind }
|
|
|
|
attributes #1 = { nounwind "amdgpu-flat-work-group-size"="32,128" }
|
|
|
|
attributes #2 = { nounwind "amdgpu-flat-work-group-size"="32,64" }
|