2015-01-06 19:00:21 +01:00
|
|
|
; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
|
2015-01-27 18:27:15 +01:00
|
|
|
; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
|
2014-11-13 21:07:40 +01:00
|
|
|
|
|
|
|
; Make sure we don't assert on empty functions
|
|
|
|
|
|
|
|
; SI: .text
|
2015-03-17 15:34:42 +01:00
|
|
|
; SI-LABEL: {{^}}empty_function_ret:
|
2014-11-13 21:07:40 +01:00
|
|
|
; SI: s_endpgm
|
|
|
|
; SI: codeLenInByte = 4
|
|
|
|
define void @empty_function_ret() #0 {
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; SI: .text
|
2015-03-17 15:34:42 +01:00
|
|
|
; SI-LABEL: {{^}}empty_function_unreachable:
|
2014-11-13 21:07:40 +01:00
|
|
|
; SI: codeLenInByte = 0
|
|
|
|
define void @empty_function_unreachable() #0 {
|
|
|
|
unreachable
|
|
|
|
}
|
|
|
|
|
|
|
|
attributes #0 = { nounwind }
|