1 # This test ensures that a YAML profile with multiple profiles matching the same
2 # function is handled gracefully.
4 # REQUIRES: system-linux
5 # RUN: split-file %s %t
6 # RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %t/main.s -o %t.o
7 # RUN: %clang %cflags %t.o -o %t.exe -Wl,-q -nostdlib
8 # RUN: llvm-bolt %t.exe -o /dev/null --data %t/profile.yaml \
9 # RUN: --profile-ignore-hash -v=1 2>&1 | FileCheck %s
10 # CHECK: BOLT-WARNING: dropping duplicate profile for main_alias(*2)
13 .type main_alias, %function
23 .size main_alias, .-main_alias
28 binary-name: 'yaml-multiple-profiles.test.tmp.exe'
29 binary-build-id: '<unknown>'
30 profile-flags: [ lbr ]
31 profile-origin: branch profile reader
37 hash: 0x50BBA3441D436491
43 hash: 0x4D4D8FAF7D4C0000
44 - name: 'main_alias(*2)'
46 hash: 0x50BBA3441D436491
52 hash: 0x4D4D8FAF7D4C0000