1*45bb48eaSTom Stellard; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s 2*45bb48eaSTom Stellard; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s 3*45bb48eaSTom Stellard 4*45bb48eaSTom Stellard; Make sure we don't assert on empty functions 5*45bb48eaSTom Stellard 6*45bb48eaSTom Stellard; SI: .text 7*45bb48eaSTom Stellard; SI-LABEL: {{^}}empty_function_ret: 8*45bb48eaSTom Stellard; SI: s_endpgm 9*45bb48eaSTom Stellard; SI: codeLenInByte = 4 10*45bb48eaSTom Stellarddefine void @empty_function_ret() #0 { 11*45bb48eaSTom Stellard ret void 12*45bb48eaSTom Stellard} 13*45bb48eaSTom Stellard 14*45bb48eaSTom Stellard; SI: .text 15*45bb48eaSTom Stellard; SI-LABEL: {{^}}empty_function_unreachable: 16*45bb48eaSTom Stellard; SI: codeLenInByte = 0 17*45bb48eaSTom Stellarddefine void @empty_function_unreachable() #0 { 18*45bb48eaSTom Stellard unreachable 19*45bb48eaSTom Stellard} 20*45bb48eaSTom Stellard 21*45bb48eaSTom Stellardattributes #0 = { nounwind } 22