27 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_BRJT is an indirect branch by leveraging RISCV's5# version of analyzeBranch. If G_BRJT would not be an indirect branch, this6# test would crash.7 8---9name: test_jump_table10legalized: true11tracksRegLiveness: true12jumpTable:13 kind: block-address14 entries:15 - id: 016 blocks: [ '%bb.0' ]17body: |18 bb.0:19 liveins: $x020 %0:_(s32) = COPY $x021 %1:_(p0) = COPY $x022 23 ; CHECK-NOT: Branch instruction is missing a basic block operand or isIndirectBranch property24 G_BRJT %1, %jump-table.0, %025 26...27