68 lines · plain
1# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %s -o %t.o2# RUN: link_fdata %s %t.o %t.fdata3# RUN: llvm-strip --strip-unneeded %t.o4# RUN: %clang %cflags %t.o -o %t.exe5# RUN: llvm-bolt %t.exe --data %t.fdata -o %t.null | FileCheck %s6 7## Check that profile is correctly matched by functions with variable suffixes.8## E.g., LTO-generated name foo.llvm.123 should match foo.llvm.*.9 10# CHECK: 6 out of {{.*}} functions in the binary {{.*}} have non-empty execution profile11# CHECK-NOT: profile for {{.*}} objects was ignored12 13 .globl _start14_start:15 16LL_start_0:17# FDATA: 1 _start #LL_start_0# 1 foo.llvm.321 0 0 118 call foo.llvm.12319 20LL_start_1:21# FDATA: 1 _start #LL_start_1# 1 foo.constprop.321 0 0 122 call foo.constprop.12323 24LL_start_2:25# FDATA: 1 _start #LL_start_2# 1 foo.lto_priv.321 0 0 126 call foo.lto_priv.12327 28LL_start_3:29# FDATA: 1 _start #LL_start_3# 1 foo.__uniq.321 0 0 130 call foo.__uniq.12331 32LL_start_4:33# FDATA: 1 _start #LL_start_4# 1 foo.__uniq.654.llvm.321 0 0 134 call foo.__uniq.456.llvm.12335 36 call exit37 .size _start, .-_start38 39 .globl foo.llvm.12340 .type foo.llvm.123,@function41foo.llvm.123:42 ret43 .size foo.llvm.123, .-foo.llvm.12344 45 .globl foo.constprop.12346 .type foo.constprop.123,@function47foo.constprop.123:48 ret49 .size foo.constprop.123, .-foo.constprop.12350 51 .globl foo.lto_priv.12352 .type foo.lto_priv.123,@function53foo.lto_priv.123:54 ret55 .size foo.lto_priv.123, .-foo.lto_priv.12356 57 .globl foo.__uniq.12358 .type foo.__uniq.123,@function59foo.__uniq.123:60 ret61 .size foo.__uniq.123, .-foo.__uniq.12362 63 .globl foo.__uniq.456.llvm.12364 .type foo.__uniq.456.llvm.123,@function65foo.__uniq.456.llvm.123:66 ret67 .size foo.__uniq.456.llvm.123, .-foo.__uniq.456.llvm.12368