1 ## This reproduces issue 20 from our github repo
2 ## "BOLT crashes when removing unreachable BBs that are a target
5 # REQUIRES: system-linux
7 # RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown \
9 # RUN: %clang %cflags -no-pie %t.o -o %t.exe
10 # RUN: llvm-bolt %t.exe --relocs=0 --jump-tables=move --print-finalized \
11 # RUN: -o %t.out | FileCheck %s
13 # CHECK-NOT: BOLT-INFO: UCE removed {{.*}} blocks and {{.*}} bytes of code
14 # CHECK: Binary Function "main"
15 # CHECK: .LFT{{.*}} (2 instructions, align : 1)
16 # CHECK-NEXT: 00000004: andq
17 # CHECK-NEXT: 00000008: jmpq
18 # CHECK-NEXT: Successors: .Ltmp{{.*}}, .Ltmp{{.*}}, .Ltmp{{.*}}, .Ltmp{{.*}}
24 .size main, .Lend1-main
29 jmpq
*jumptbl
(,%rdi
,8)