brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 918cf4e Raw
55 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=regbankselect -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:       420legalized:       true21tracksRegLiveness: true22body:             |23  ; MIPS32-LABEL: name: indirectbr24  ; MIPS32: bb.0.entry:25  ; MIPS32:   successors: %bb.1(0x40000000), %bb.2(0x40000000)26  ; MIPS32:   liveins: $a027  ; MIPS32:   [[COPY:%[0-9]+]]:gprb(p0) = COPY $a028  ; MIPS32:   [[C:%[0-9]+]]:gprb(s32) = G_CONSTANT i32 129  ; MIPS32:   [[C1:%[0-9]+]]:gprb(s32) = G_CONSTANT i32 030  ; MIPS32:   G_BRINDIRECT [[COPY]](p0)31  ; MIPS32: bb.1.L1:32  ; MIPS32:   $v0 = COPY [[C1]](s32)33  ; MIPS32:   RetRA implicit $v034  ; MIPS32: bb.2.L2:35  ; MIPS32:   $v0 = COPY [[C]](s32)36  ; MIPS32:   RetRA implicit $v037  bb.1.entry:38    successors: %bb.2, %bb.339    liveins: $a040 41    %0:_(p0) = COPY $a042    %1:_(s32) = G_CONSTANT i32 143    %2:_(s32) = G_CONSTANT i32 044    G_BRINDIRECT %0(p0)45 46  bb.2.L1:47    $v0 = COPY %2(s32)48    RetRA implicit $v049 50  bb.3.L2:51    $v0 = COPY %1(s32)52    RetRA implicit $v053 54...55