1 # This reproduces issue 20 from our github repo
2 # "BOLT crashes when removing unreachable BBs that are a target
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
9 CHECK-NOT: BOLT-INFO: UCE removed {{.*}} blocks and {{.*}}| bytes of code
10 CHECK: Binary Function "main"
11 CHECK: .LFT0 (2 instructions, align : 1)
12 CHECK-NEXT: CFI State : 0
13 CHECK-NEXT: 00000004: andq
14 CHECK-NEXT: 00000008: jmpq
15 CHECK-NEXT: Successors: .Ltmp1, .Ltmp2, .Ltmp3, .Ltmp4