Home | History | Annotate | Download | only in mips

Lines Matching refs:r_src

163 LIR* MipsMir2Lir::OpRegCopyNoInsert(RegStorage r_dest, RegStorage r_src) {
168 if (r_src.IsPair()) {
169 r_src = r_src.GetLow();
171 if (r_dest.IsFloat() || r_src.IsFloat())
172 return OpFpRegCopy(r_dest, r_src);
174 r_dest.GetReg(), r_src.GetReg());
175 if (!(cu_->disable_opt & (1 << kSafeOptimizations)) && r_dest == r_src) {
181 void MipsMir2Lir::OpRegCopy(RegStorage r_dest, RegStorage r_src) {
182 if (r_dest != r_src) {
183 LIR *res = OpRegCopyNoInsert(r_dest, r_src);
188 void MipsMir2Lir::OpRegCopyWide(RegStorage r_dest, RegStorage r_src) {
189 if (r_dest != r_src) {
191 bool src_fp = r_src.IsFloat();
194 OpRegCopy(r_dest, r_src);
197 NewLIR2(kMipsMtc1, r_src.GetLowReg(), r_dest.GetLowReg());
198 NewLIR2(kMipsMtc1, r_src.GetHighReg(), r_dest.GetHighReg());
202 NewLIR2(kMipsMfc1, r_dest.GetLowReg(), r_src.GetLowReg());
203 NewLIR2(kMipsMfc1, r_dest.GetHighReg(), r_src.GetHighReg());
206 if (r_src.GetHighReg() == r_dest.GetLowReg()) {
207 OpRegCopy(r_dest.GetHigh(), r_src.GetHigh());
208 OpRegCopy(r_dest.GetLow(), r_src.GetLow());
210 OpRegCopy(r_dest.GetLow(), r_src.GetLow());
211 OpRegCopy(r_dest.GetHigh(), r_src.GetHigh());