@@ -15,7 +15,7 @@ RUN: llvm-bolt %p/Output/openssl -o %t.exe --pa -p %p/Inputs/openssl.preagg.txt
1515RUN: -reorder-blocks=ext-tsp -peepholes=all -dyno-stats -enable-bat \
1616RUN: -split-functions -split-all-cold -split-eh -icf \
1717RUN: -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 \
1919RUN: |& FileCheck %s -check-prefix=CHECK-BOLT-BAT
2020
2121# Check functions with multiple entries
@@ -29,6 +29,10 @@ CHECK-BOLT-BAT-NEXT: Exec Count : 211301
2929CHECK-BOLT-BAT-NEXT: CFI State : 1
3030CHECK-BOLT-BAT-NEXT: Input offset: 0x6
3131
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+
3236CHECK-BOLT-BAT: Binary Function "__memcpy_evex_unaligned_erms(*2)" after building cfg {
3337CHECK-BOLT-BAT-NEXT: All names : __memcpy_evex_unaligned_erms
3438CHECK-BOLT-BAT-NEXT: __memmove_evex_unaligned_erms
@@ -58,6 +62,7 @@ RUN: llvm-nm -n %t.exe | FileCheck %s -check-prefix=CHECK-NM
5862CHECK-NM: 0000000000c01340 t bn_mul4x_mont
5963CHECK-NM: 0000000000c09900 T __memcpy_evex_unaligned_erms
6064CHECK-NM-NEXT: 0000000000c09900 T __memmove_evex_unaligned_erms
65+ CHECK-NM: 0000000000c26200 T BN_BLINDING_convert_ex
6166
6267# Verify that BAT contains multiple entry points
6368RUN: llvm-bat-dump %t.exe --dump-all | FileCheck %s -check-prefix=CHECK-BAT-DUMP
@@ -66,11 +71,14 @@ CHECK-BAT-DUMP-NEXT: BB mappings:
6671CHECK-BAT-DUMP-NEXT: 0x0 -> 0x0 hash: 0xe2009bcb77a90000
6772CHECK-BAT-DUMP-NEXT: 0x3 -> 0x3 (branch)
6873CHECK-BAT-DUMP-NEXT: 0x6 -> 0x6 hash: 0x32cdb7e92d280006
69- CHECK-BAT-DUMP-NEXT: 1 secondary entry points:
74+ CHECK-BAT-DUMP: 1 secondary entry points:
7075CHECK-BAT-DUMP-NEXT: 0x6
7176
7277CHECK-BAT-DUMP: Function Address: 0xc09900, hash: 0xcfce38fb253cf652
7378CHECK-BAT-DUMP: 3 secondary entry points:
7479CHECK-BAT-DUMP-NEXT: 0x7
7580CHECK-BAT-DUMP-NEXT: 0x40
7681CHECK-BAT-DUMP-NEXT: 0xcd
82+
83+ CHECK-BAT-DUMP: Function Address: 0xc26200
84+ CHECK-BAT-DUMP: NumBlocks: 15
0 commit comments