Skip to content

Commit faf7d91

Browse files
committed
updated test
Created using spr 1.3.4
1 parent d93af18 commit faf7d91

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

bolt/test/X86/unclaimed-jt-entries.s

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@
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
@@ -33,8 +43,10 @@
3343
.size main, .Lend-main
3444
main:
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
@@ -58,7 +70,7 @@ L4:
5870
.quad .L3
5971
.quad .L6
6072
.quad .L3
61-
.quad .L5
73+
.quad L5
6274
.quad .L3
6375
.quad .L3
6476
.quad .L3

0 commit comments

Comments
 (0)