brintos

brintos / llvm-project-archived public Read only

0
0
Text · 605 B · 5ae4bc2 Raw
27 lines · plain
1; RUN: llc < %s -mtriple=amdgcn -mcpu=verde | FileCheck %s2 3; This testcase was discovered in si-annotate-cf.ll, where none of the4; RUN lines was actually exercising it. See that files git log for its5; history.6 7; FIXME: should emit s_endpgm8; CHECK-LABEL: {{^}}switch_unreachable:9; CHECK-NOT: s_endpgm10; CHECK: .Lfunc_end11define amdgpu_kernel void @switch_unreachable(ptr addrspace(1) %g, ptr addrspace(3) %l, i32 %x) nounwind {12centry:13  switch i32 %x, label %sw.default [14    i32 0, label %sw.bb15    i32 60, label %sw.bb16  ]17 18sw.bb:19  unreachable20 21sw.default:22  unreachable23 24sw.epilog:25  ret void26}27