1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv32 -run-pass=instruction-select -simplify-mir \
3 # RUN: -verify-machineinstrs %s -o - | FileCheck -check-prefix=RV32I %s
9 tracksRegLiveness: true
11 ; RV32I-LABEL: name: indirectbr
13 ; RV32I-NEXT: successors: %bb.1, %bb.2
14 ; RV32I-NEXT: liveins: $x10
16 ; RV32I-NEXT: [[COPY:%[0-9]+]]:gprjalr = COPY $x10
17 ; RV32I-NEXT: [[ADDI:%[0-9]+]]:gpr = ADDI $x0, 1
18 ; RV32I-NEXT: [[COPY1:%[0-9]+]]:gpr = COPY $x0
19 ; RV32I-NEXT: PseudoBRIND [[COPY]], 0
22 ; RV32I-NEXT: $x10 = COPY [[COPY1]]
23 ; RV32I-NEXT: PseudoRET implicit $x10
26 ; RV32I-NEXT: $x10 = COPY [[ADDI]]
27 ; RV32I-NEXT: PseudoRET implicit $x10
29 successors: %bb.2, %bb.3
32 %0:gprb(p0) = COPY $x10
33 %1:gprb(s32) = G_CONSTANT i32 1
34 %2:gprb(s32) = G_CONSTANT i32 0
39 PseudoRET implicit $x10
43 PseudoRET implicit $x10