@@ -15,7 +15,7 @@ RUN: llvm-bolt %p/Output/openssl -o %t.exe --pa -p %p/Inputs/openssl.preagg.txt
15
15
RUN: -reorder-blocks=ext-tsp -peepholes=all -dyno-stats -enable-bat \
16
16
RUN: -split-functions -split-all-cold -split-eh -icf \
17
17
RUN: -reorder-functions=cdsort -use-gnu-stack -jump-tables=move -frame-opt=hot \
18
- RUN: -print-cfg -print-only=bn_mul4x_mont.*,__memcpy_evex_unaligned_erms.* \
18
+ RUN: -print-cfg -print-only=bn_mul4x_mont.*,__memcpy_evex_unaligned_erms.*,BN_BLINDING_convert_ex \
19
19
RUN: |& FileCheck %s -check-prefix=CHECK-BOLT-BAT
20
20
21
21
# Check functions with multiple entries
@@ -29,6 +29,10 @@ CHECK-BOLT-BAT-NEXT: Exec Count : 211301
29
29
CHECK-BOLT-BAT-NEXT: CFI State : 1
30
30
CHECK-BOLT-BAT-NEXT: Input offset: 0x6
31
31
32
+ CHECK-BOLT-BAT: Binary Function "BN_BLINDING_convert_ex" after building cfg {
33
+ CHECK-BOLT-BAT: BB Count : 15
34
+ CHECK-BOLT-BAT: }
35
+
32
36
CHECK-BOLT-BAT: Binary Function "__memcpy_evex_unaligned_erms(*2)" after building cfg {
33
37
CHECK-BOLT-BAT-NEXT: All names : __memcpy_evex_unaligned_erms
34
38
CHECK-BOLT-BAT-NEXT: __memmove_evex_unaligned_erms
@@ -58,6 +62,7 @@ RUN: llvm-nm -n %t.exe | FileCheck %s -check-prefix=CHECK-NM
58
62
CHECK-NM: 0000000000c01340 t bn_mul4x_mont
59
63
CHECK-NM: 0000000000c09900 T __memcpy_evex_unaligned_erms
60
64
CHECK-NM-NEXT: 0000000000c09900 T __memmove_evex_unaligned_erms
65
+ CHECK-NM: 0000000000c26200 T BN_BLINDING_convert_ex
61
66
62
67
# Verify that BAT contains multiple entry points
63
68
RUN: llvm-bat-dump %t.exe --dump-all | FileCheck %s -check-prefix=CHECK-BAT-DUMP
@@ -66,11 +71,14 @@ CHECK-BAT-DUMP-NEXT: BB mappings:
66
71
CHECK-BAT-DUMP-NEXT: 0x0 -> 0x0 hash: 0xe2009bcb77a90000
67
72
CHECK-BAT-DUMP-NEXT: 0x3 -> 0x3 (branch)
68
73
CHECK-BAT-DUMP-NEXT: 0x6 -> 0x6 hash: 0x32cdb7e92d280006
69
- CHECK-BAT-DUMP-NEXT: 1 secondary entry points:
74
+ CHECK-BAT-DUMP: 1 secondary entry points:
70
75
CHECK-BAT-DUMP-NEXT: 0x6
71
76
72
77
CHECK-BAT-DUMP: Function Address: 0xc09900, hash: 0xcfce38fb253cf652
73
78
CHECK-BAT-DUMP: 3 secondary entry points:
74
79
CHECK-BAT-DUMP-NEXT: 0x7
75
80
CHECK-BAT-DUMP-NEXT: 0x40
76
81
CHECK-BAT-DUMP-NEXT: 0xcd
82
+
83
+ CHECK-BAT-DUMP: Function Address: 0xc26200
84
+ CHECK-BAT-DUMP: NumBlocks: 15
0 commit comments