| OLD | NEW |
| 1 //===- subzero/src/IceInstMips32.cpp - Mips32 instruction implementation --===// | 1 //===- subzero/src/IceInstMips32.cpp - Mips32 instruction implementation --===// |
| 2 // | 2 // |
| 3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 // | 9 // |
| 10 /// \file | 10 /// \file |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 } | 308 } |
| 309 | 309 |
| 310 if (Src64 == nullptr) { | 310 if (Src64 == nullptr) { |
| 311 addSource(Src); | 311 addSource(Src); |
| 312 } else { | 312 } else { |
| 313 addSource(Src64->getLo()); | 313 addSource(Src64->getLo()); |
| 314 addSource(Src64->getHi()); | 314 addSource(Src64->getHi()); |
| 315 } | 315 } |
| 316 } | 316 } |
| 317 | 317 |
| 318 InstMIPS32MovFP64ToI64::InstMIPS32MovFP64ToI64(Cfg *Func, Variable *Dst, |
| 319 Operand *Src, |
| 320 Int64Part Int64HiLo) |
| 321 : InstMIPS32(Func, InstMIPS32::Mov_fp, 1, Dst), Int64HiLo(Int64HiLo) { |
| 322 addSource(Src); |
| 323 } |
| 324 |
| 318 InstMIPS32Ret::InstMIPS32Ret(Cfg *Func, Variable *RA, Variable *Source) | 325 InstMIPS32Ret::InstMIPS32Ret(Cfg *Func, Variable *RA, Variable *Source) |
| 319 : InstMIPS32(Func, InstMIPS32::Ret, Source ? 2 : 1, nullptr) { | 326 : InstMIPS32(Func, InstMIPS32::Ret, Source ? 2 : 1, nullptr) { |
| 320 addSource(RA); | 327 addSource(RA); |
| 321 if (Source) | 328 if (Source) |
| 322 addSource(Source); | 329 addSource(Source); |
| 323 } | 330 } |
| 324 | 331 |
| 325 // ======================== Dump routines ======================== // | 332 // ======================== Dump routines ======================== // |
| 326 | 333 |
| 327 void InstMIPS32::dump(const Cfg *Func) const { | 334 void InstMIPS32::dump(const Cfg *Func) const { |
| (...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1228 Asm->xor_(getDest(), getSrc(0), getSrc(1)); | 1235 Asm->xor_(getDest(), getSrc(0), getSrc(1)); |
| 1229 } | 1236 } |
| 1230 | 1237 |
| 1231 template <> void InstMIPS32Xori::emitIAS(const Cfg *Func) const { | 1238 template <> void InstMIPS32Xori::emitIAS(const Cfg *Func) const { |
| 1232 auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>(); | 1239 auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>(); |
| 1233 Asm->xori(getDest(), getSrc(0), Imm); | 1240 Asm->xori(getDest(), getSrc(0), Imm); |
| 1234 } | 1241 } |
| 1235 | 1242 |
| 1236 } // end of namespace MIPS32 | 1243 } // end of namespace MIPS32 |
| 1237 } // end of namespace Ice | 1244 } // end of namespace Ice |
| OLD | NEW |