brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.5 KiB · 6044f73 Raw
73 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 void @mul_i32(i32 %x, i32 %y) {entry: ret void}6  define void @umul_with_overflow(i32 %lhs, i32 %rhs, ptr %pmul, ptr %pcarry_flag) { ret void }7 8...9---10name:            mul_i3211alignment:       412legalized:       true13regBankSelected: true14tracksRegLiveness: true15body:             |16  bb.0.entry:17    liveins: $a0, $a118 19    ; MIPS32-LABEL: name: mul_i3220    ; MIPS32: liveins: $a0, $a121    ; MIPS32: [[COPY:%[0-9]+]]:gpr32 = COPY $a022    ; MIPS32: [[COPY1:%[0-9]+]]:gpr32 = COPY $a123    ; MIPS32: [[MUL:%[0-9]+]]:gpr32 = MUL [[COPY]], [[COPY1]], implicit-def dead $hi0, implicit-def dead $lo024    ; MIPS32: $v0 = COPY [[MUL]]25    ; MIPS32: RetRA implicit $v026    %0:gprb(s32) = COPY $a027    %1:gprb(s32) = COPY $a128    %2:gprb(s32) = G_MUL %0, %129    $v0 = COPY %2(s32)30    RetRA implicit $v031 32...33---34name:            umul_with_overflow35alignment:       436legalized:       true37regBankSelected: true38tracksRegLiveness: true39body:             |40  bb.1 (%ir-block.0):41    liveins: $a0, $a1, $a2, $a342 43    ; MIPS32-LABEL: name: umul_with_overflow44    ; MIPS32: liveins: $a0, $a1, $a2, $a345    ; MIPS32: [[COPY:%[0-9]+]]:gpr32 = COPY $a046    ; MIPS32: [[COPY1:%[0-9]+]]:gpr32 = COPY $a147    ; MIPS32: [[COPY2:%[0-9]+]]:gpr32 = COPY $a248    ; MIPS32: [[COPY3:%[0-9]+]]:gpr32 = COPY $a349    ; MIPS32: [[MUL:%[0-9]+]]:gpr32 = MUL [[COPY]], [[COPY1]], implicit-def dead $hi0, implicit-def dead $lo050    ; MIPS32: [[PseudoMULTu:%[0-9]+]]:acc64 = PseudoMULTu [[COPY]], [[COPY1]]51    ; MIPS32: [[PseudoMFHI:%[0-9]+]]:gpr32 = PseudoMFHI [[PseudoMULTu]]52    ; MIPS32: [[SLTu:%[0-9]+]]:gpr32 = SLTu $zero, [[PseudoMFHI]]53    ; MIPS32: [[ANDi:%[0-9]+]]:gpr32 = ANDi [[SLTu]], 154    ; MIPS32: SB [[ANDi]], [[COPY3]], 0 :: (store (s8) into %ir.pcarry_flag)55    ; MIPS32: SW [[MUL]], [[COPY2]], 0 :: (store (s32) into %ir.pmul)56    ; MIPS32: RetRA57    %0:gprb(s32) = COPY $a058    %1:gprb(s32) = COPY $a159    %2:gprb(p0) = COPY $a260    %3:gprb(p0) = COPY $a361    %4:gprb(s32) = G_MUL %0, %162    %7:gprb(s32) = G_UMULH %0, %163    %8:gprb(s32) = G_CONSTANT i32 064    %9:gprb(s32) = G_ICMP intpred(ne), %7(s32), %865    %10:gprb(s32) = G_CONSTANT i32 166    %11:gprb(s32) = COPY %9(s32)67    %6:gprb(s32) = G_AND %11, %1068    G_STORE %6(s32), %3(p0) :: (store (s8) into %ir.pcarry_flag)69    G_STORE %4(s32), %2(p0) :: (store (s32) into %ir.pmul)70    RetRA71 72...73