1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=regbankselect -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=MIPS32
5 define i32 @indirectbr(ptr %addr) {
7 indirectbr ptr %addr, [label %L1, label %L2]
21 tracksRegLiveness: true
23 ; MIPS32-LABEL: name: indirectbr
25 ; MIPS32: successors: %bb.1(0x40000000), %bb.2(0x40000000)
26 ; MIPS32: liveins: $a0
27 ; MIPS32: [[COPY:%[0-9]+]]:gprb(p0) = COPY $a0
28 ; MIPS32: [[C:%[0-9]+]]:gprb(s32) = G_CONSTANT i32 1
29 ; MIPS32: [[C1:%[0-9]+]]:gprb(s32) = G_CONSTANT i32 0
30 ; MIPS32: G_BRINDIRECT [[COPY]](p0)
32 ; MIPS32: $v0 = COPY [[C1]](s32)
33 ; MIPS32: RetRA implicit $v0
35 ; MIPS32: $v0 = COPY [[C]](s32)
36 ; MIPS32: RetRA implicit $v0
38 successors: %bb.2, %bb.3
42 %1:_(s32) = G_CONSTANT i32 1
43 %2:_(s32) = G_CONSTANT i32 0