1 REQUIRES: system-linux,bolt-runtime
3 RUN: %clangxx %cxxflags -pie -fPIC %p/Inputs/pie-exceptions-failed-split.s \
5 RUN: llvm-bolt %t -o %t.instr --instrument --instrumentation-file=%t.fdata
7 ## Record profile with invocation that does not throw exceptions.
10 RUN: llvm-bolt %t -o %t.bolt --data %t.fdata --reorder-blocks=ext-tsp \
11 RUN: --split-functions --split-eh --print-after-lowering \
12 RUN: --print-only=_Z10throw_testiPPc 2>&1 | FileCheck %s
14 ## Hot code in the test case gets larger after splitting because of jump
15 ## instruction relaxation. Check that BOLT reverts the split correctly.
16 CHECK: Binary Function "_Z10throw_testiPPc"
20 ## Check that the landing pad trampoline was created, but contains no
21 ## instructions and falls to the real landing pad.
22 CHECK: {{^[^[:space:]]+}} (0 instructions
23 CHECK-NEXT: Landing Pad{{$}}
27 CHECK-SAME: [[LP:[^[:space:]]+]]
32 CHECK-DAG: callq __cxa_begin_catch
34 ## Verify the output still executes correctly when the exception path is being
36 RUN: %t.bolt arg1 arg2 arg3