R600 -> AMDGPU rename
[oota-llvm.git] / test / CodeGen / AMDGPU / empty-function.ll
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: .text
7 ; SI-LABEL: {{^}}empty_function_ret:
8 ; SI: s_endpgm
9 ; SI: codeLenInByte = 4
10 define void @empty_function_ret() #0 {
11   ret void
12 }
13
14 ; SI: .text
15 ; SI-LABEL: {{^}}empty_function_unreachable:
16 ; SI: codeLenInByte = 0
17 define void @empty_function_unreachable() #0 {
18   unreachable
19 }
20
21 attributes #0 = { nounwind }