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