blob: d4ff803b5635bf932a7cd6e18058c7af5703e0b6 [file] [log] [blame]
Matt Arsenault6ef66142014-11-13 20:07:40 +00001; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
2
3; Make sure we don't assert on empty functions
4
5; SI-LABEL: {{^}}empty_function_ret:
6; SI: .text
7; SI: s_endpgm
8; SI: codeLenInByte = 4
9define void @empty_function_ret() #0 {
10 ret void
11}
12
13; SI-LABEL: {{^}}empty_function_unreachable:
14; SI: .text
15; SI: codeLenInByte = 0
16define void @empty_function_unreachable() #0 {
17 unreachable
18}
19
20attributes #0 = { nounwind }