1 # Checks that jump table footprint reduction optimization is reducing entry
4 RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown \
5 RUN: %S/Inputs/jump_table_footprint_reduction.s -o %t.o
6 RUN: link_fdata %S/Inputs/jump_table_footprint_reduction.s %t.o %t.fdata --nmtool llvm-nm
7 RUN: llvm-strip --strip-unneeded %t.o
8 RUN: %clang %cflags -no-pie %t.o -o %t.exe -Wl,-q
9 RUN: llvm-bolt %t.exe --data %t.fdata -o /dev/null \
10 RUN: --jump-tables=move --jt-footprint-reduction --assume-abi --relocs \
13 CHECK: 100.00% of dynamic JT entries were reduced.
14 CHECK: 1 of 1 jump tables affected.
15 CHECK: 1 of 1 indirect jumps to JTs affected.
16 CHECK: 36 bytes saved.