1# RUN: llc -march=riscv32 -o - -run-pass=none -verify-machineinstrs %s | FileCheck %s 2# REQUIRES: riscv-registered-target 3 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. 7 8--- 9name: test_indirect_branch 10legalized: true 11tracksRegLiveness: true 12body: | 13 bb.0: 14 liveins: $x0 15 %0:_(p0) = COPY $x0 16 17 ; CHECK-NOT: Branch instruction is missing a basic block operand or isIndirectBranch property 18 G_BRINDIRECT %0 19 20... 21