brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · db2c660 Raw
61 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=mips -mcpu=mips2 -O3 -relocation-model=pic \3; RUN:   -mips-jalr-reloc=false | FileCheck %s -check-prefixes=MIPS24; RUN: llc < %s -mtriple=mips -mcpu=mips32 -O3 -relocation-model=pic \5; RUN:   -mips-jalr-reloc=false | FileCheck %s -check-prefixes=MIPS326 7; RUN: llc < %s -mtriple=mips64 -mcpu=mips3 -O3 -relocation-model=pic \8; RUN:   -mips-jalr-reloc=false | FileCheck %s -check-prefixes=MIPS39; RUN: llc < %s -mtriple=mips64 -mcpu=mips64 -O3 -relocation-model=pic \10; RUN:   -mips-jalr-reloc=false | FileCheck %s -check-prefixes=MIPS6411 12define signext i32 @mult_i32(i32 signext %a, i32 signext %b, i32 signext %c) {13; MIPS2-LABEL: mult_i32:14; MIPS2:       # %bb.0: # %entry15; MIPS2-NEXT:    mult $4, $516; MIPS2-NEXT:    mflo $117; MIPS2-NEXT:    nop18; MIPS2-NEXT:    nop19; MIPS2-NEXT:    mult $1, $620; MIPS2-NEXT:    mflo $221; MIPS2-NEXT:    jr $ra22; MIPS2-NEXT:    nop23;24; MIPS32-LABEL: mult_i32:25; MIPS32:       # %bb.0: # %entry26; MIPS32-NEXT:    mul $1, $4, $527; MIPS32-NEXT:    jr $ra28; MIPS32-NEXT:    mul $2, $1, $629;30entry:31  %mul = mul nsw i32 %a, %b32  %mul1 = mul nsw i32 %mul, %c33  ret i32 %mul134}35 36define signext i64 @mul_i64(i64 signext %a, i64 signext %b, i64 signext %c) {37; MIPS3-LABEL: mul_i64:38; MIPS3:       # %bb.0: # %entry39; MIPS3-NEXT:    dmult $4, $540; MIPS3-NEXT:    mflo $141; MIPS3-NEXT:    nop42; MIPS3-NEXT:    nop43; MIPS3-NEXT:    dmult $1, $644; MIPS3-NEXT:    mflo $245; MIPS3-NEXT:    jr $ra46; MIPS3-NEXT:    nop47;48; MIPS64-LABEL: mul_i64:49; MIPS64:       # %bb.0: # %entry50; MIPS64-NEXT:    dmult $4, $551; MIPS64-NEXT:    mflo $152; MIPS64-NEXT:    dmult $1, $653; MIPS64-NEXT:    jr $ra54; MIPS64-NEXT:    mflo $255;56entry:57  %mul = mul i64 %a, %b58  %mul1 = mul i64 %mul, %c59  ret i64 %mul160}61