Lines Matching refs:r_src
181 LIR* MipsMir2Lir::OpRegCopyNoInsert(RegStorage r_dest, RegStorage r_src) { in OpRegCopyNoInsert() argument
190 if (r_src.IsPair()) { in OpRegCopyNoInsert()
191 r_src = r_src.GetLow(); in OpRegCopyNoInsert()
194 DCHECK(!r_dest.IsPair() && !r_src.IsPair()); in OpRegCopyNoInsert()
197 if (r_dest.IsFloat() || r_src.IsFloat()) in OpRegCopyNoInsert()
198 return OpFpRegCopy(r_dest, r_src); in OpRegCopyNoInsert()
201 if (r_dest.Is64Bit() || r_src.Is64Bit()) { in OpRegCopyNoInsert()
209 res = RawLIR(current_dalvik_offset_, opcode, r_dest.GetReg(), r_src.GetReg()); in OpRegCopyNoInsert()
210 if (!(cu_->disable_opt & (1 << kSafeOptimizations)) && r_dest == r_src) { in OpRegCopyNoInsert()
216 void MipsMir2Lir::OpRegCopy(RegStorage r_dest, RegStorage r_src) { in OpRegCopy() argument
217 if (r_dest != r_src) { in OpRegCopy()
218 LIR *res = OpRegCopyNoInsert(r_dest, r_src); in OpRegCopy()
223 void MipsMir2Lir::OpRegCopyWide(RegStorage r_dest, RegStorage r_src) { in OpRegCopyWide() argument
225 OpRegCopy(r_dest, r_src); in OpRegCopyWide()
228 if (r_dest != r_src) { in OpRegCopyWide()
230 bool src_fp = r_src.IsFloat(); in OpRegCopyWide()
235 OpRegCopy(r_dest, r_src); in OpRegCopyWide()
240 NewLIR2(kMipsMtc1, r_src.GetLowReg(), r_dest.GetLowReg()); in OpRegCopyWide()
241 NewLIR2(kMipsMtc1, r_src.GetHighReg(), r_dest.GetHighReg()); in OpRegCopyWide()
244 NewLIR2(kMipsMtc1, r_src.GetLowReg(), r_dest.GetReg()); in OpRegCopyWide()
245 NewLIR2(kMipsMthc1, r_src.GetHighReg(), r_dest.GetReg()); in OpRegCopyWide()
252 NewLIR2(kMipsMfc1, r_dest.GetLowReg(), r_src.GetLowReg()); in OpRegCopyWide()
253 NewLIR2(kMipsMfc1, r_dest.GetHighReg(), r_src.GetHighReg()); in OpRegCopyWide()
255 r_src = Fp64ToSolo32(r_src); in OpRegCopyWide()
256 NewLIR2(kMipsMfc1, r_dest.GetLowReg(), r_src.GetReg()); in OpRegCopyWide()
257 NewLIR2(kMipsMfhc1, r_dest.GetHighReg(), r_src.GetReg()); in OpRegCopyWide()
262 if (r_src.GetHighReg() != r_dest.GetLowReg()) { in OpRegCopyWide()
263 OpRegCopy(r_dest.GetLow(), r_src.GetLow()); in OpRegCopyWide()
264 OpRegCopy(r_dest.GetHigh(), r_src.GetHigh()); in OpRegCopyWide()
265 } else if (r_src.GetLowReg() != r_dest.GetHighReg()) { in OpRegCopyWide()
266 OpRegCopy(r_dest.GetHigh(), r_src.GetHigh()); in OpRegCopyWide()
267 OpRegCopy(r_dest.GetLow(), r_src.GetLow()); in OpRegCopyWide()
270 OpRegCopy(r_tmp, r_src.GetHigh()); in OpRegCopyWide()
271 OpRegCopy(r_dest.GetLow(), r_src.GetLow()); in OpRegCopyWide()