1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=MIPS32
5 define i32 @indirectbr(i8* %addr) {
7 indirectbr i8* %addr, [label %L1, label %L2]
22 tracksRegLiveness: true
24 ; MIPS32-LABEL: name: indirectbr
26 ; MIPS32: successors: %bb.1(0x40000000), %bb.2(0x40000000)
27 ; MIPS32: liveins: $a0
28 ; MIPS32: [[COPY:%[0-9]+]]:gpr32 = COPY $a0
29 ; MIPS32: [[ORi:%[0-9]+]]:gpr32 = ORi $zero, 1
30 ; MIPS32: [[ORi1:%[0-9]+]]:gpr32 = ORi $zero, 0
31 ; MIPS32: PseudoIndirectBranch [[COPY]]
33 ; MIPS32: $v0 = COPY [[ORi1]]
34 ; MIPS32: RetRA implicit $v0
36 ; MIPS32: $v0 = COPY [[ORi]]
37 ; MIPS32: RetRA implicit $v0
39 successors: %bb.2, %bb.3
42 %0:gprb(p0) = COPY $a0
43 %1:gprb(s32) = G_CONSTANT i32 1
44 %2:gprb(s32) = G_CONSTANT i32 0