1 # This checks for an issue with internal calls and BAT (BOLT address
2 # translation). BAT needs to map every output block back to an input
3 # block, but passes that introduce new blocks (such as validate
4 # internal calls) might create new blocks without a mapping to an
7 # REQUIRES: x86_64-linux,bolt-runtime
9 # RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %s -o %t.o
10 # Delete our BB symbols so BOLT doesn't mark them as entry points
11 # RUN: llvm-strip --strip-unneeded %t.o
12 # RUN: %clang %cflags %t.o -o %t.exe -Wl,-q
14 # RUN: llvm-bolt --enable-bat %t.exe --relocs -o %t.out | FileCheck %s
15 # CHECK: BOLT-INFO: Wrote {{.*}} BAT maps
17 # RUN: llvm-bat-dump %t.out --dump-all | \
18 # RUN: FileCheck %s --check-prefix=CHECK-BAT-DUMP
19 # CHECK-BAT-DUMP: BAT tables for {{.*}} functions
38 movabs $0xdeadbeef,%rax