1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv64 -run-pass=instruction-select -simplify-mir \
3 # RUN: -verify-machineinstrs %s -o - | FileCheck -check-prefix=RV64I %s
9 tracksRegLiveness: true
11 ; RV64I-LABEL: name: indirectbr
13 ; RV64I-NEXT: successors: %bb.1, %bb.2
14 ; RV64I-NEXT: liveins: $x10
16 ; RV64I-NEXT: [[COPY:%[0-9]+]]:gprjalr = COPY $x10
17 ; RV64I-NEXT: PseudoBRIND [[COPY]], 0
20 ; RV64I-NEXT: [[COPY1:%[0-9]+]]:gpr = COPY $x0
21 ; RV64I-NEXT: $x10 = COPY [[COPY1]]
22 ; RV64I-NEXT: PseudoRET implicit $x10
25 ; RV64I-NEXT: [[ADDI:%[0-9]+]]:gpr = ADDI $x0, 1
26 ; RV64I-NEXT: $x10 = COPY [[ADDI]]
27 ; RV64I-NEXT: PseudoRET implicit $x10
29 successors: %bb.2, %bb.3
32 %0:gprb(p0) = COPY $x10
36 %4:gprb(s64) = G_CONSTANT i64 0
38 PseudoRET implicit $x10
41 %2:gprb(s64) = G_CONSTANT i64 1
43 PseudoRET implicit $x10