1 # This test ensures that "unclaimed" jump table entries are accounted later
2 # in postProcessIndirectBranches and the function is marked as non-simple.
4 # The test is compiled from the following source using GCC 12.2 -O3:
5 # https://godbolt.org/z/YcPG131s6
6 # int func(long long Input) {
13 # default: __builtin_unreachable();
17 # REQUIRES: system-linux
19 # RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %s -o %t.o
20 # RUN: %clang %cflags -no-pie %t.o -o %t.exe -Wl,-q
21 # RUN: llvm-bolt %t.exe -v=1 -o %t.out |& FileCheck %s
23 # CHECK: BOLT-WARNING: unclaimed data to code reference (possibly an unrecognized jump table entry) to .Ltmp[[#]] in main
24 # CHECK: BOLT-WARNING: unclaimed data to code reference (possibly an unrecognized jump table entry) to .Ltmp[[#]] in main
25 # CHECK: BOLT-WARNING: unclaimed data to code reference (possibly an unrecognized jump table entry) to .Ltmp[[#]] in main
26 # CHECK: BOLT-WARNING: unclaimed data to code reference (possibly an unrecognized jump table entry) to .Ltmp[[#]] in main
27 # CHECK: BOLT-WARNING: unclaimed data to code reference (possibly an unrecognized jump table entry) to .Ltmp[[#]] in main
28 # CHECK: BOLT-WARNING: failed to post-process indirect branches for main
33 .size main, .Lend-main