mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 14:20:17 +00:00
d648aa1b8e
Replace a single dash with a double dash for options that have more than a single letter. llvm-bolt-wrapper.py has special treatment for output options such as "-o" and "-w" causing issues when a single dash is used, e.g. for "-write-dwp". The wrapper can be fixed as well, but using a double dash has other advantages as well. Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D127538
17 lines
689 B
Plaintext
17 lines
689 B
Plaintext
# Checks that jump table footprint reduction optimization is reducing entry
|
|
# sizes.
|
|
|
|
RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown \
|
|
RUN: %S/Inputs/jump_table_footprint_reduction.s -o %t.o
|
|
RUN: link_fdata %S/Inputs/jump_table_footprint_reduction.s %t.o %t.fdata --nmtool llvm-nm
|
|
RUN: llvm-strip --strip-unneeded %t.o
|
|
RUN: %clang %cflags -no-pie %t.o -o %t.exe -Wl,-q
|
|
RUN: llvm-bolt %t.exe --data %t.fdata -o /dev/null \
|
|
RUN: --jump-tables=move --jt-footprint-reduction --assume-abi --relocs \
|
|
RUN: | FileCheck %s
|
|
|
|
CHECK: 100.00% of dynamic JT entries were reduced.
|
|
CHECK: 1 of 1 jump tables affected.
|
|
CHECK: 1 of 1 indirect jumps to JTs affected.
|
|
CHECK: 36 bytes saved.
|