brintos

brintos / llvm-project-archived public Read only

0
0
Text · 501 B · 57137b7 Raw
14 lines · plain
1## Check that BOLT folds functions with jump tables and does not report2## undefined symbols.3 4# REQUIRES: system-linux5 6# RUN: %clang %cflags -O1 -g %p/../Inputs/icf-jump-tables.c -o %t.exe -Wl,-q7# RUN: llvm-bolt %t.exe --icf -o %t.bolt 2>&1 | FileCheck %s8 9## Check that BOLT successfully folded a function with jump table:10# CHECK: ICF folded {{.*}}. {{[^0]}} functions had jump tables.11 12## Check that no relocations against undefined symbols were emitted:13# CHECK-NOT: Undefined temporary symbol14