Skip to content

Commit 2af96ad

Browse files
committed
[BOLT-TESTS] Update openssl.test
1 parent 93bdc8b commit 2af96ad

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

test/X86/openssl.test

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RUN: llvm-bolt %p/Output/openssl -o %t.exe --pa -p %p/Inputs/openssl.preagg.txt
1515
RUN: -reorder-blocks=ext-tsp -peepholes=all -dyno-stats -enable-bat \
1616
RUN: -split-functions -split-all-cold -split-eh -icf \
1717
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 \
1919
RUN: |& 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
2929
CHECK-BOLT-BAT-NEXT: CFI State : 1
3030
CHECK-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+
3236
CHECK-BOLT-BAT: Binary Function "__memcpy_evex_unaligned_erms(*2)" after building cfg {
3337
CHECK-BOLT-BAT-NEXT: All names : __memcpy_evex_unaligned_erms
3438
CHECK-BOLT-BAT-NEXT: __memmove_evex_unaligned_erms
@@ -58,6 +62,7 @@ RUN: llvm-nm -n %t.exe | FileCheck %s -check-prefix=CHECK-NM
5862
CHECK-NM: 0000000000c01340 t bn_mul4x_mont
5963
CHECK-NM: 0000000000c09900 T __memcpy_evex_unaligned_erms
6064
CHECK-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
6368
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:
6671
CHECK-BAT-DUMP-NEXT: 0x0 -> 0x0 hash: 0xe2009bcb77a90000
6772
CHECK-BAT-DUMP-NEXT: 0x3 -> 0x3 (branch)
6873
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:
7075
CHECK-BAT-DUMP-NEXT: 0x6
7176

7277
CHECK-BAT-DUMP: Function Address: 0xc09900, hash: 0xcfce38fb253cf652
7378
CHECK-BAT-DUMP: 3 secondary entry points:
7479
CHECK-BAT-DUMP-NEXT: 0x7
7580
CHECK-BAT-DUMP-NEXT: 0x40
7681
CHECK-BAT-DUMP-NEXT: 0xcd
82+
83+
CHECK-BAT-DUMP: Function Address: 0xc26200
84+
CHECK-BAT-DUMP: NumBlocks: 15

0 commit comments

Comments
 (0)