Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / bolt / test / X86 / jmpjmp.test
blobb512001c3c4464360ed26e1126e875b86c1e1518
1 # Verifies that llvm-bolt allocates two consecutive jumps in two separate basic
2 # blocks.
4 RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %S/Inputs/jmpjmp.s -o %t.o
5 RUN: %clang %cflags %t.o -o %t.exe
6 RUN: llvm-bolt %t.exe -o /dev/null --print-cfg 2>&1 | FileCheck %s
8 CHECK:  Binary Function "testfunc"
9 CHECK:    State       : CFG constructed
10 CHECK:    Section     : .text
11 CHECK:    IsSimple    : 1
12 CHECK:    BB Count    : 4
13 CHECK:  }
14 CHECK:  .LBB{{.*}}
15 CHECK:      {{.*}}:   jmp     .Ltmp{{.*}}
16 CHECK:    Successors: .Ltmp{{.*}}
17 CHECK:  .LFT{{.*}}
18 CHECK:      {{.*}}:   jmp     .Ltmp{{.*}}
19 CHECK:    Successors: .Ltmp{{.*}}
20 CHECK:  .Ltmp{{.*}}
21 CHECK:    Predecessors: .LBB{{.*}}
22 CHECK:      {{.*}}:   jmp     .Ltmp{{.*}}
23 CHECK:    Successors: .Ltmp{{.*}}
24 CHECK:  .Ltmp{{.*}}
25 CHECK:    Predecessors: .LFT{{.*}}, .Ltmp{{.*}}
26 CHECK:      {{.*}}:   retq