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 3--- | 4 5 define i32 @indirectbr(i8* %addr) { 6 entry: 7 indirectbr i8* %addr, [label %L1, label %L2] 8 9 L1: 10 ret i32 0 11 12 L2: 13 ret i32 1 14 } 15 16... 17--- 18name: indirectbr 19alignment: 4 20legalized: true 21tracksRegLiveness: true 22body: | 23 ; MIPS32-LABEL: name: indirectbr 24 ; MIPS32: bb.0.entry: 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) 31 ; MIPS32: bb.1.L1: 32 ; MIPS32: $v0 = COPY [[C1]](s32) 33 ; MIPS32: RetRA implicit $v0 34 ; MIPS32: bb.2.L2: 35 ; MIPS32: $v0 = COPY [[C]](s32) 36 ; MIPS32: RetRA implicit $v0 37 bb.1.entry: 38 successors: %bb.2, %bb.3 39 liveins: $a0 40 41 %0:_(p0) = COPY $a0 42 %1:_(s32) = G_CONSTANT i32 1 43 %2:_(s32) = G_CONSTANT i32 0 44 G_BRINDIRECT %0(p0) 45 46 bb.2.L1: 47 $v0 = COPY %2(s32) 48 RetRA implicit $v0 49 50 bb.3.L2: 51 $v0 = COPY %1(s32) 52 RetRA implicit $v0 53 54... 55