Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MachineVerifier / test_g_brindirect_is_indirect_branch.mir
blob68593caafc797b76cfa482779ec290d946721d17
1 # RUN: llc -mtriple=riscv32 -o - -run-pass=none -verify-machineinstrs %s | FileCheck %s
2 # REQUIRES: riscv-registered-target
4 # This test checks that the G_BRINDIRECT is an indirect branch by leveraging
5 # RISCV's version of analyzeBranch. If G_BRINDIRECT would not be an indirect
6 # branch, this test would crash.
8 ---
9 name:            test_indirect_branch
10 legalized:       true
11 tracksRegLiveness: true
12 body:             |
13   bb.0:
14     liveins: $x0
15     %0:_(p0) = COPY $x0
17     ; CHECK-NOT: Branch instruction is missing a basic block operand or isIndirectBranch property
18     G_BRINDIRECT %0
20 ...