brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · bca4283 Raw
57 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=instruction-select -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:       true21regBankSelected: true22tracksRegLiveness: true23body:             |24  ; MIPS32-LABEL: name: indirectbr25  ; MIPS32: bb.0.entry:26  ; MIPS32:   successors: %bb.1(0x40000000), %bb.2(0x40000000)27  ; MIPS32:   liveins: $a028  ; MIPS32:   [[COPY:%[0-9]+]]:gpr32 = COPY $a029  ; MIPS32:   [[ORi:%[0-9]+]]:gpr32 = ORi $zero, 130  ; MIPS32:   [[ORi1:%[0-9]+]]:gpr32 = ORi $zero, 031  ; MIPS32:   PseudoIndirectBranch [[COPY]]32  ; MIPS32: bb.1.L1:33  ; MIPS32:   $v0 = COPY [[ORi1]]34  ; MIPS32:   RetRA implicit $v035  ; MIPS32: bb.2.L2:36  ; MIPS32:   $v0 = COPY [[ORi]]37  ; MIPS32:   RetRA implicit $v038  bb.1.entry:39    successors: %bb.2, %bb.340    liveins: $a041 42    %0:gprb(p0) = COPY $a043    %1:gprb(s32) = G_CONSTANT i32 144    %2:gprb(s32) = G_CONSTANT i32 045    G_BRINDIRECT %0(p0)46 47  bb.2.L1:48    $v0 = COPY %2(s32)49    RetRA implicit $v050 51  bb.3.L2:52    $v0 = COPY %1(s32)53    RetRA implicit $v054 55...56 57