1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv32 -run-pass=legalizer %s -o - \
8 ; CHECK-LABEL: name: indirectbr
10 ; CHECK-NEXT: successors: %bb.1(0x40000000), %bb.2(0x40000000)
11 ; CHECK-NEXT: liveins: $x10
13 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(p0) = COPY $x10
14 ; CHECK-NEXT: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 1
15 ; CHECK-NEXT: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 0
16 ; CHECK-NEXT: G_BRINDIRECT [[COPY]](p0)
19 ; CHECK-NEXT: $x10 = COPY [[C1]](s32)
20 ; CHECK-NEXT: PseudoRET implicit $x10
23 ; CHECK-NEXT: $x10 = COPY [[C]](s32)
24 ; CHECK-NEXT: PseudoRET implicit $x10
26 successors: %bb.2, %bb.3
30 %1:_(s32) = G_CONSTANT i32 1
31 %2:_(s32) = G_CONSTANT i32 0
36 PseudoRET implicit $x10
40 PseudoRET implicit $x10