1 # Check that functions listed in -function-order list take precedence over
2 # lite mode function filtering.
4 # RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %s -o %t.o
5 # RUN: link_fdata %s %t.o %t.fdata
6 # RUN: %clang %cflags %t.o -o %t.exe -Wl,-q
7 # RUN: llvm-bolt %t.exe --data %t.fdata --lite --reorder-functions=user \
8 # RUN: --function-order=%p/Inputs/order-lite.txt -o %t -print-all 2>&1 \
11 # CHECK: 1 out of 3 functions in the binary (33.3%) have non-empty execution profile
12 # CHECK-DAG: Binary Function "main" after reorder-functions
13 # CHECK-DAG: Binary Function "foo.__uniq.123" after reorder-functions
26 .type testfunc, %function
28 # FDATA: 0 [unknown] 0 1 testfunc 0 1 0
36 .size testfunc, .-testfunc
39 .type foo.__uniq.123, %function
48 .size foo.__uniq.123, .-foo.__uniq.123