aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/R600/empty-function.ll
blob: d4ff803b5635bf932a7cd6e18058c7af5703e0b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s

; Make sure we don't assert on empty functions

; SI-LABEL: {{^}}empty_function_ret:
; SI: .text
; SI: s_endpgm
; SI: codeLenInByte = 4
define void @empty_function_ret() #0 {
  ret void
}

; SI-LABEL: {{^}}empty_function_unreachable:
; SI: .text
; SI: codeLenInByte = 0
define void @empty_function_unreachable() #0 {
  unreachable
}

attributes #0 = { nounwind }