xref: /llvm-project/bolt/test/X86/no-entry-reordering.test (revision 11791ae7b0b05b8bd8d806331ff51da618912cf8)
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
3
4RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %S/Inputs/entry.s -o %t.o
5RUN: link_fdata %S/Inputs/entry.s %t.o %t.fdata --nmtool llvm-nm
6RUN: llvm-strip --strip-unneeded %t.o
7RUN: %clang %cflags %t.o -o %t.exe -Wl,-q -nostdlib
8RUN: llvm-bolt %t.exe --data %t.fdata -o %t.null --reorder-blocks=normal \
9RUN:   --funcs=_start --print-reordered --sequential-disassembly | FileCheck %s
10
11CHECK:  BB Layout : .LBB00, {{.*}}
12