54 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=legalizer -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=MIPS323--- |4 5 define i32 @indirectbr(ptr %addr) {6 entry:7 indirectbr ptr %addr, [label %L1, label %L2]8 9 L1:10 ret i32 011 12 L2:13 ret i32 114 }15 16...17---18name: indirectbr19alignment: 420tracksRegLiveness: true21body: |22 ; MIPS32-LABEL: name: indirectbr23 ; MIPS32: bb.0.entry:24 ; MIPS32: successors: %bb.1(0x40000000), %bb.2(0x40000000)25 ; MIPS32: liveins: $a026 ; MIPS32: [[COPY:%[0-9]+]]:_(p0) = COPY $a027 ; MIPS32: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 128 ; MIPS32: [[C1:%[0-9]+]]:_(s32) = G_CONSTANT i32 029 ; MIPS32: G_BRINDIRECT [[COPY]](p0)30 ; MIPS32: bb.1.L1:31 ; MIPS32: $v0 = COPY [[C1]](s32)32 ; MIPS32: RetRA implicit $v033 ; MIPS32: bb.2.L2:34 ; MIPS32: $v0 = COPY [[C]](s32)35 ; MIPS32: RetRA implicit $v036 bb.1.entry:37 successors: %bb.2, %bb.338 liveins: $a039 40 %0:_(p0) = COPY $a041 %1:_(s32) = G_CONSTANT i32 142 %2:_(s32) = G_CONSTANT i32 043 G_BRINDIRECT %0(p0)44 45 bb.2.L1:46 $v0 = COPY %2(s32)47 RetRA implicit $v048 49 bb.3.L2:50 $v0 = COPY %1(s32)51 RetRA implicit $v052 53...54