2017-08-08 02:30:35 +08:00
|
|
|
; RUN: llc -march=amdgcn -mcpu=tahiti -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
|
2015-01-28 01:27:15 +08:00
|
|
|
; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
|
2014-11-14 04:07:40 +08:00
|
|
|
|
|
|
|
; Make sure we don't assert on empty functions
|
|
|
|
|
|
|
|
; SI: .text
|
2015-03-17 22:34:42 +08:00
|
|
|
; SI-LABEL: {{^}}empty_function_ret:
|
2014-11-14 04:07:40 +08:00
|
|
|
; SI: s_endpgm
|
|
|
|
; SI: codeLenInByte = 4
|
2017-03-22 05:39:51 +08:00
|
|
|
define amdgpu_kernel void @empty_function_ret() #0 {
|
2014-11-14 04:07:40 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; SI: .text
|
2015-03-17 22:34:42 +08:00
|
|
|
; SI-LABEL: {{^}}empty_function_unreachable:
|
2014-11-14 04:07:40 +08:00
|
|
|
; SI: codeLenInByte = 0
|
2017-03-22 05:39:51 +08:00
|
|
|
define amdgpu_kernel void @empty_function_unreachable() #0 {
|
2014-11-14 04:07:40 +08:00
|
|
|
unreachable
|
|
|
|
}
|
|
|
|
|
|
|
|
attributes #0 = { nounwind }
|