Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / bolt / test / X86 / indirect-goto.test
blobe2565ff889327aa61728a63127c18d2829f06cb3
1 # Check llvm-bolt processes binaries compiled from sources that use indirect goto.
2 RUN: %clang %cflags -no-pie %S/Inputs/indirect_goto.c -Wl,-q -o %t
3 RUN: llvm-bolt %t -o /dev/null --relocs=1 --print-cfg --print-only=main \
4 RUN:   --strict \
5 RUN:   2>&1 | FileCheck %s
7 # Check that all possible destinations are included as successors.
8 CHECK:  jmpq    *%rax # UNKNOWN CONTROL FLOW
9 CHECK:  Successors: .Ltmp0, .Ltmp1, .Ltmp2