1 # This reproduces a bug where profile collected from perf without LBRs and
2 # converted into fdata-no-lbr format is reported to not contain profile for any
5 # REQUIRES: system-linux
7 # RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown \
9 # RUN: link_fdata --no-lbr %s %t.o %t.fdata
10 # RUN: FileCheck %s --input-file %t.fdata --check-prefix=CHECK-FDATA
11 # RUN: llvm-strip --strip-unneeded %t.o
12 # RUN: %clang %cflags %t.o -o %t.exe -Wl,-q -nostdlib
13 # RUN: llvm-bolt %t.exe -o %t.out --data %t.fdata --dyno-stats -nl \
14 # RUN: --print-only=_start 2>&1 | FileCheck %s --check-prefix=CHECK-BOLT
17 # CHECK-FDATA-NEXT: 1 _start [[#]] 1
19 # CHECK-BOLT: BOLT-INFO: pre-processing profile using branch profile reader
20 # CHECK-BOLT: BOLT-INFO: operating with basic samples profiling data (no LBR).
21 # CHECK-BOLT: BOLT-INFO: 1 out of 1 functions in the binary (100.0%) have non-empty execution profile
24 .type _start, %function
30 # FDATA: 1 _start #a# 1
39 .size _start, .-_start