1## This reproduces issue 20 from our github repo 2## "BOLT crashes when removing unreachable BBs that are a target 3## in a JT" 4 5# RUN: yaml2obj %p/Inputs/issue20.yaml &> %t.exe 6# RUN: llvm-bolt %t.exe --relocs=0 --jump-tables=move --print-finalized \ 7# RUN: -o %t.out | FileCheck %s 8 9CHECK-NOT: BOLT-INFO: UCE removed {{.*}} blocks and {{.*}}| bytes of code 10CHECK: Binary Function "main" 11CHECK: .LFT0 (2 instructions, align : 1) 12CHECK-NEXT: 00000004: andq 13CHECK-NEXT: 00000008: jmpq 14CHECK-NEXT: Successors: .Ltmp1, .Ltmp2, .Ltmp3, .Ltmp4 15