1; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
2; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
3
4; Make sure we don't assert on empty functions
5
6; SI-LABEL: {{^}}empty_function_ret:
7; SI: .text
8; SI: s_endpgm
9; SI: codeLenInByte = 4
10define void @empty_function_ret() #0 {
11  ret void
12}
13
14; SI-LABEL: {{^}}empty_function_unreachable:
15; SI: .text
16; SI: codeLenInByte = 0
17define void @empty_function_unreachable() #0 {
18  unreachable
19}
20
21attributes #0 = { nounwind }
22