-
Notifications
You must be signed in to change notification settings - Fork 5
/
bzip2.test
24 lines (18 loc) · 1 KB
/
bzip2.test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Check that llvm-bolt processes bzip2 binary for aarch64 in these conditions:
# - no block reordering (just read the input and output it correctly)
# - no relocs
RUN: llvm-bolt %p/Inputs/bzip2 -o %t |& FileCheck %s
CHECK: BOLT-INFO: Target architecture: aarch64
CHECK: BOLT: 65 out of 102 functions were overwritten.
# Check that llvm-bolt processes bzip2 binary for aarch64 in these conditions:
# - block reordering
# - function splitting
# - no relocs
RUN: llvm-bolt %p/Inputs/bzip2 -o %t -lite -dyno-stats \
RUN: -b=%p/Inputs/bzip2.fdata -reorder-blocks=cache \
RUN: -split-functions=3 -profile-ignore-hash &> %t.log
RUN: FileCheck %s -check-prefix=CHECKREORDER --input-file=%t.log
CHECKREORDER: BOLT-INFO: Target architecture: aarch64
CHECKREORDER: BOLT-INFO: 18 out of 79 functions in the binary (22.8%) have non-empty execution profile
CHECKREORDER: 18 out of 102 functions were overwritten.
CHECKREORDER: rewritten functions cover 100.00% of the execution count of simple functions of this binary