Lines Matching refs:r_src

126 LIR* X86Mir2Lir::OpRegCopyNoInsert(RegStorage r_dest, RegStorage r_src) {  in OpRegCopyNoInsert()  argument
131 if (r_src.IsPair()) { in OpRegCopyNoInsert()
132 r_src = r_src.GetLow(); in OpRegCopyNoInsert()
134 if (r_dest.IsFloat() || r_src.IsFloat()) in OpRegCopyNoInsert()
135 return OpFpRegCopy(r_dest, r_src); in OpRegCopyNoInsert()
137 r_dest.GetReg(), r_src.GetReg()); in OpRegCopyNoInsert()
138 if (!(cu_->disable_opt & (1 << kSafeOptimizations)) && r_dest == r_src) { in OpRegCopyNoInsert()
144 void X86Mir2Lir::OpRegCopy(RegStorage r_dest, RegStorage r_src) { in OpRegCopy() argument
145 if (r_dest != r_src) { in OpRegCopy()
146 LIR *res = OpRegCopyNoInsert(r_dest, r_src); in OpRegCopy()
151 void X86Mir2Lir::OpRegCopyWide(RegStorage r_dest, RegStorage r_src) { in OpRegCopyWide() argument
152 if (r_dest != r_src) { in OpRegCopyWide()
154 bool src_fp = r_src.IsFloat(); in OpRegCopyWide()
157 OpRegCopy(r_dest, r_src); in OpRegCopyWide()
161 if (!r_src.IsPair()) { in OpRegCopyWide()
163 NewLIR2(kX86MovqxrRR, r_dest.GetReg(), r_src.GetReg()); in OpRegCopyWide()
165 NewLIR2(kX86MovdxrRR, r_dest.GetReg(), r_src.GetLowReg()); in OpRegCopyWide()
167 NewLIR2(kX86MovdxrRR, r_tmp.GetReg(), r_src.GetHighReg()); in OpRegCopyWide()
175 DCHECK(!r_src.IsPair()); in OpRegCopyWide()
176 NewLIR2(kX86MovqrxRR, r_dest.GetReg(), r_src.GetReg()); in OpRegCopyWide()
178 NewLIR2(kX86MovdrxRR, r_dest.GetLowReg(), r_src.GetReg()); in OpRegCopyWide()
180 NewLIR2(kX86MovsdRR, temp_reg.GetReg(), r_src.GetReg()); in OpRegCopyWide()
185 DCHECK_EQ(r_dest.IsPair(), r_src.IsPair()); in OpRegCopyWide()
186 if (!r_src.IsPair()) { in OpRegCopyWide()
188 OpRegCopy(r_dest, r_src); in OpRegCopyWide()
191 if (r_src.GetHighReg() == r_dest.GetLowReg() && in OpRegCopyWide()
192 r_src.GetLowReg() == r_dest.GetHighReg()) { in OpRegCopyWide()
199 } else if (r_src.GetHighReg() == r_dest.GetLowReg()) { in OpRegCopyWide()
200 OpRegCopy(r_dest.GetHigh(), r_src.GetHigh()); in OpRegCopyWide()
201 OpRegCopy(r_dest.GetLow(), r_src.GetLow()); in OpRegCopyWide()
203 OpRegCopy(r_dest.GetLow(), r_src.GetLow()); in OpRegCopyWide()
204 OpRegCopy(r_dest.GetHigh(), r_src.GetHigh()); in OpRegCopyWide()