15 lines · plain
1## This reproduces issue 20 from our github repo2## "BOLT crashes when removing unreachable BBs that are a target3## in a JT"4 5# RUN: yaml2obj %p/Inputs/issue20.yaml &> %t.exe6# RUN: llvm-bolt %t.exe --relocs=0 --jump-tables=move --print-finalized \7# RUN: -o %t.out | FileCheck %s8 9CHECK-NOT: BOLT-INFO: UCE removed {{.*}} blocks and {{.*}}| bytes of code10CHECK: Binary Function "main"11CHECK: .LFT0 (2 instructions, align : 1)12CHECK-NEXT: 00000004: andq13CHECK-NEXT: 00000008: jmpq14CHECK-NEXT: Successors: .Ltmp1, .Ltmp2, .Ltmp3, .Ltmp415