21 lines · plain
1# RUN: llc -mtriple=riscv32 -o - -run-pass=none -verify-machineinstrs %s | FileCheck %s2# REQUIRES: riscv-registered-target3 4# This test checks that the G_BRINDIRECT is an indirect branch by leveraging5# RISCV's version of analyzeBranch. If G_BRINDIRECT would not be an indirect6# branch, this test would crash.7 8---9name: test_indirect_branch10legalized: true11tracksRegLiveness: true12body: |13 bb.0:14 liveins: $x015 %0:_(p0) = COPY $x016 17 ; CHECK-NOT: Branch instruction is missing a basic block operand or isIndirectBranch property18 G_BRINDIRECT %019 20...21