Lines Matching refs:r_src

414 LIR* ArmMir2Lir::OpRegCopyNoInsert(RegStorage r_dest, RegStorage r_src) {  in OpRegCopyNoInsert()  argument
421 if (r_src.IsPair()) { in OpRegCopyNoInsert()
422 r_src = r_src.GetLow(); in OpRegCopyNoInsert()
424 if (r_dest.IsFloat() || r_src.IsFloat()) in OpRegCopyNoInsert()
425 return OpFpRegCopy(r_dest, r_src); in OpRegCopyNoInsert()
426 if (r_dest.Low8() && r_src.Low8()) in OpRegCopyNoInsert()
428 else if (!r_dest.Low8() && !r_src.Low8()) in OpRegCopyNoInsert()
434 res = RawLIR(current_dalvik_offset_, opcode, r_dest.GetReg(), r_src.GetReg()); in OpRegCopyNoInsert()
435 if (!(cu_->disable_opt & (1 << kSafeOptimizations)) && r_dest == r_src) { in OpRegCopyNoInsert()
441 void ArmMir2Lir::OpRegCopy(RegStorage r_dest, RegStorage r_src) { in OpRegCopy() argument
442 if (r_dest != r_src) { in OpRegCopy()
443 LIR* res = OpRegCopyNoInsert(r_dest, r_src); in OpRegCopy()
448 void ArmMir2Lir::OpRegCopyWide(RegStorage r_dest, RegStorage r_src) { in OpRegCopyWide() argument
449 if (r_dest != r_src) { in OpRegCopyWide()
451 bool src_fp = r_src.IsFloat(); in OpRegCopyWide()
453 DCHECK(r_src.Is64Bit()); in OpRegCopyWide()
460 if (src_fp && r_src.IsPair()) { in OpRegCopyWide()
461 r_src = As64BitFloatReg(r_src); in OpRegCopyWide()
465 OpRegCopy(r_dest, r_src); in OpRegCopyWide()
467 NewLIR3(kThumb2Fmdrr, r_dest.GetReg(), r_src.GetLowReg(), r_src.GetHighReg()); in OpRegCopyWide()
471 NewLIR3(kThumb2Fmrrd, r_dest.GetLowReg(), r_dest.GetHighReg(), r_src.GetReg()); in OpRegCopyWide()
474 if (r_src.GetHighReg() != r_dest.GetLowReg()) { in OpRegCopyWide()
475 OpRegCopy(r_dest.GetLow(), r_src.GetLow()); in OpRegCopyWide()
476 OpRegCopy(r_dest.GetHigh(), r_src.GetHigh()); in OpRegCopyWide()
477 } else if (r_src.GetLowReg() != r_dest.GetHighReg()) { in OpRegCopyWide()
478 OpRegCopy(r_dest.GetHigh(), r_src.GetHigh()); in OpRegCopyWide()
479 OpRegCopy(r_dest.GetLow(), r_src.GetLow()); in OpRegCopyWide()
482 OpRegCopy(r_tmp, r_src.GetHigh()); in OpRegCopyWide()
483 OpRegCopy(r_dest.GetLow(), r_src.GetLow()); in OpRegCopyWide()
654 void ArmMir2Lir::GenEasyMultiplyTwoOps(RegStorage r_dest, RegStorage r_src, EasyMultiplyOp* ops) { in GenEasyMultiplyTwoOps() argument
661 } else if (r_dest.GetReg() != r_src.GetReg()) { in GenEasyMultiplyTwoOps()
669 OpRegRegImm(kOpLsl, r_tmp1, r_src, ops[0].shift); in GenEasyMultiplyTwoOps()
672 OpRegRegRegShift(kOpAdd, r_tmp1, r_src, r_src, EncodeShift(kArmLsl, ops[0].shift)); in GenEasyMultiplyTwoOps()
675 OpRegRegRegShift(kOpRsub, r_tmp1, r_src, r_src, EncodeShift(kArmLsl, ops[0].shift)); in GenEasyMultiplyTwoOps()
689 OpRegRegRegShift(kOpAdd, r_dest, r_src, r_tmp1, EncodeShift(kArmLsl, ops[1].shift)); in GenEasyMultiplyTwoOps()
692 OpRegRegRegShift(kOpRsub, r_dest, r_src, r_tmp1, EncodeShift(kArmLsl, ops[1].shift)); in GenEasyMultiplyTwoOps()