brintos

brintos / llvm-project-archived public Read only

0
0
Text · 499 B · 09bda93 Raw
13 lines · plain
1## Check that successors of a basic block with jump table are generated2## in the same order as they appear in the input code.3 4RUN: %clang %cflags %S/Inputs/jump-table-pic.s -o %t.exe -Wl,-q5RUN: llvm-bolt %t.exe --strict --print-cfg --print-only=main -o %t.null \6RUN:   | FileCheck %s7 8CHECK:      BB Layout   : {{.*, .*, .*,}} [[BB4to6:.*, .*, .*]]9 10## Check that successors appear in the order matching the input layout.11CHECK:      jmpq    *%rax # JUMPTABLE12CHECK-NEXT: Successors: [[BB4to6]]13