1 # Verifies that llvm-bolt reordering heuristic does not allocate a BB before the
2 # entry point even if there is a hot edge from a block to entry point
4 RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %S/Inputs/entry.s -o %t.o
5 RUN: link_fdata %S/Inputs/entry.s %t.o %t.fdata --nmtool llvm-nm
6 RUN: llvm-strip --strip-unneeded %t.o
7 RUN: %clang %cflags %t.o -o %t.exe -Wl,-q -nostdlib
8 RUN: llvm-bolt %t.exe --data %t.fdata -o %t.null --reorder-blocks=normal \
9 RUN: --funcs=_start --print-reordered --sequential-disassembly | FileCheck %s
11 CHECK: BB Layout : .LBB00, {{.*}}