File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 1818
1919# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %s -o %t.o
2020# RUN: %clang %cflags -no-pie %t.o -o %t.exe -Wl,-q
21+
22+ ## Check that non-simple function profile is emitted in perf2bolt mode
23+ # RUN: link_fdata %s %t.exe %t.pa PREAGG
24+ # RUN: llvm-strip -N L5 -N L5_ret %t.exe
25+ # RUN: perf2bolt %t.exe -p %t.pa --pa -o %t.fdata -strict=0 -print-profile \
26+ # RUN: -print-only=main | FileCheck %s --check-prefix=CHECK-P2B
27+ # CHECK-P2B: PERF2BOLT: traces mismatching disassembled function contents: 0
28+ # CHECK-P2B: Binary Function "main"
29+ # CHECK-P2B: IsSimple : 0
30+
2131# RUN: llvm-bolt %t.exe -v=1 -o %t.out 2>&1 | FileCheck %s
2232
2333# CHECK: BOLT-WARNING: unclaimed data to code reference (possibly an unrecognized jump table entry) to .Ltmp[[#]] in main
3343 .size main, .Lend-main
3444main:
3545 jmp *L4-24 (,%rdi ,8 )
36- .L5:
46+ # PREAGG: T #main# #L5# #L5_ret# 1
47+ L5:
3748 movl $4 , %eax
49+ L5_ret:
3850 ret
3951.L9:
4052 movl $2 , %eax
5870 .quad .L3
5971 .quad .L6
6072 .quad .L3
61- .quad . L5
73+ .quad L5
6274 .quad .L3
6375 .quad .L3
6476 .quad .L3
You can’t perform that action at this time.
0 commit comments