1; RUN: llc < %s -march=amdgcn -mcpu=verde -verify-machineinstrs | FileCheck %s 2 3; This testcase was discovered in si-annotate-cf.ll, where none of the 4; RUN lines was actually exercising it. See that files git log for its 5; history. 6 7; FIXME: should emit s_endpgm 8; CHECK-LABEL: {{^}}switch_unreachable: 9; CHECK-NOT: s_endpgm 10; CHECK: .Lfunc_end 11define amdgpu_kernel void @switch_unreachable(i32 addrspace(1)* %g, i8 addrspace(3)* %l, i32 %x) nounwind { 12centry: 13 switch i32 %x, label %sw.default [ 14 i32 0, label %sw.bb 15 i32 60, label %sw.bb 16 ] 17 18sw.bb: 19 unreachable 20 21sw.default: 22 unreachable 23 24sw.epilog: 25 ret void 26} 27