Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: src/IceInstMIPS32.cpp

Issue 2619943003: [SubZero] Fix code generation issues occurred in Cross-test and PNaCL smoke-tests (Closed)
Patch Set: Addressed review comments Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceInstMIPS32.h ('k') | src/IcePhiLoweringImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/IceInstMIPS32.h ('k') | src/IcePhiLoweringImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698