1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv64 -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: G_BRINDIRECT [[COPY]](p0)
17 ; CHECK-NEXT: [[C:%[0-9]+]]:_(s64) = G_CONSTANT i64 0
18 ; CHECK-NEXT: $x10 = COPY [[C]](s64)
19 ; CHECK-NEXT: PseudoRET implicit $x10
22 ; CHECK-NEXT: [[C1:%[0-9]+]]:_(s64) = G_CONSTANT i64 1
23 ; CHECK-NEXT: $x10 = COPY [[C1]](s64)
24 ; CHECK-NEXT: PseudoRET implicit $x10
26 successors: %bb.2, %bb.3
33 %4:_(s64) = G_CONSTANT i64 0
35 PseudoRET implicit $x10
38 %2:_(s64) = G_CONSTANT i64 1
40 PseudoRET implicit $x10