mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 02:26:05 +00:00
13 lines
499 B
Plaintext
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]]
|