llvm-project/bolt/test/X86/jump-table-pic-order.test
Sayhaan Siddiqui 11791ae7b0
[BOLT][DWARF][NFC] Added double escape characters (#93348)
Added double escape characters to lines that describe a test.
2024-05-31 15:14:37 -07:00

13 lines
499 B
Plaintext

## Check that successors of a basic block with jump table are generated
## in the same order as they appear in the input code.
RUN: %clang %cflags %S/Inputs/jump-table-pic.s -o %t.exe -Wl,-q
RUN: llvm-bolt %t.exe --strict --print-cfg --print-only=main -o %t.null \
RUN: | FileCheck %s
CHECK: BB Layout : {{.*, .*, .*,}} [[BB4to6:.*, .*, .*]]
## Check that successors appear in the order matching the input layout.
CHECK: jmpq *%rax # JUMPTABLE
CHECK-NEXT: Successors: [[BB4to6]]