R600/SI: Add a stub GCNTargetMachine
[oota-llvm.git] / test / CodeGen / R600 / empty-function.ll
1 ; RUN: llc -march=amdgcn -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
9 define void @empty_function_ret() #0 {
10   ret void
11 }
12
13 ; SI-LABEL: {{^}}empty_function_unreachable:
14 ; SI: .text
15 ; SI: codeLenInByte = 0
16 define void @empty_function_unreachable() #0 {
17   unreachable
18 }
19
20 attributes #0 = { nounwind }