blob: c2e56588ef807d1d2508fc93ba42c827a600ace7 [file] [edit]
; RUN: llc -mtriple=amdgpu7.00-amd-amdhsa -amdgpu-function-calls < %s | FileCheck -check-prefix=CALLS %s
; RUN: llc -mtriple=amdgpu7.00-amd-amdhsa < %s | FileCheck -check-prefix=CALLS %s
; RUN: llc -mtriple=amdgpu7.00-amd-amdhsa -amdgpu-function-calls=0 < %s | FileCheck -check-prefix=NOCALLS %s
; CALLS-LABEL: callee:
; CALLS: ;;#ASMSTART
; CALLS: ;;#ASMEND
; NOCALLS-NOT: callee
define internal void @callee() {
call void asm sideeffect "", ""()
ret void
}
; CALLS-LABEL: kernel:
; CALLS: s_swappc_b64
; NOCALLS-LABEL: kernel:
; NOCALLS: ;;#ASMSTART
; NOCALLS: ;;#ASMEND
define amdgpu_kernel void @kernel() {
call void @callee()
ret void
}