You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
553 B
22 lines
553 B
; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
|
|
; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
|
|
|
|
; Make sure we don't assert on empty functions
|
|
|
|
; SI: .text
|
|
; SI-LABEL: {{^}}empty_function_ret:
|
|
; SI: s_endpgm
|
|
; SI: codeLenInByte = 4
|
|
define void @empty_function_ret() #0 {
|
|
ret void
|
|
}
|
|
|
|
; SI: .text
|
|
; SI-LABEL: {{^}}empty_function_unreachable:
|
|
; SI: codeLenInByte = 0
|
|
define void @empty_function_unreachable() #0 {
|
|
unreachable
|
|
}
|
|
|
|
attributes #0 = { nounwind }
|