1*36b4b0beSMatt Arsenault; RUN: llc -march=amdgcn -mcpu=tahiti -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
245bb48eaSTom Stellard; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
345bb48eaSTom Stellard
445bb48eaSTom Stellard; Make sure we don't assert on empty functions
545bb48eaSTom Stellard
645bb48eaSTom Stellard; SI: .text
745bb48eaSTom Stellard; SI-LABEL: {{^}}empty_function_ret:
845bb48eaSTom Stellard; SI: s_endpgm
945bb48eaSTom Stellard; SI: codeLenInByte = 4
103dbeefa9SMatt Arsenaultdefine amdgpu_kernel void @empty_function_ret() #0 {
1145bb48eaSTom Stellard  ret void
1245bb48eaSTom Stellard}
1345bb48eaSTom Stellard
1445bb48eaSTom Stellard; SI: .text
1545bb48eaSTom Stellard; SI-LABEL: {{^}}empty_function_unreachable:
1645bb48eaSTom Stellard; SI: codeLenInByte = 0
173dbeefa9SMatt Arsenaultdefine amdgpu_kernel void @empty_function_unreachable() #0 {
1845bb48eaSTom Stellard  unreachable
1945bb48eaSTom Stellard}
2045bb48eaSTom Stellard
2145bb48eaSTom Stellardattributes #0 = { nounwind }
22