27 lines · plain
1## Verifies that llvm-bolt allocates two consecutive jumps in two separate basic2## blocks.3 4RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %S/Inputs/jmpjmp.s -o %t.o5RUN: %clang %cflags %t.o -o %t.exe6RUN: llvm-bolt %t.exe -o %t.null --print-cfg 2>&1 | FileCheck %s7 8CHECK: Binary Function "testfunc"9CHECK: State : CFG constructed10CHECK: Section : .text11CHECK: IsSimple : 112CHECK: BB Count : 413CHECK: }14CHECK: .LBB{{.*}}15CHECK: {{.*}}: jmp .Ltmp{{.*}}16CHECK: Successors: .Ltmp{{.*}}17CHECK: .LFT{{.*}}18CHECK: {{.*}}: jmp .Ltmp{{.*}}19CHECK: Successors: .Ltmp{{.*}}20CHECK: .Ltmp{{.*}}21CHECK: Predecessors: .LBB{{.*}}22CHECK: {{.*}}: jmp .Ltmp{{.*}}23CHECK: Successors: .Ltmp{{.*}}24CHECK: .Ltmp{{.*}}25CHECK: Predecessors: .LFT{{.*}}, .Ltmp{{.*}}26CHECK: {{.*}}: retq27