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

Side by Side Diff: src/IceInstMIPS32.h

Issue 2143243003: SubZero: Correct parenthesis for mem operands with labels in MIPS32 (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | src/IceInstMIPS32.cpp » ('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.h - MIPS32 machine instrs --*- C++ -*-=== // 1 //===- subzero/src/IceInstMIPS32.h - MIPS32 machine instrs --*- C++ -*-=== //
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 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 510
511 void emit(const Cfg *Func) const override { 511 void emit(const Cfg *Func) const override {
512 if (!BuildDefs::dump()) 512 if (!BuildDefs::dump())
513 return; 513 return;
514 Ostream &Str = Func->getContext()->getStrEmit(); 514 Ostream &Str = Func->getContext()->getStrEmit();
515 assert(getSrcSize() == 2); 515 assert(getSrcSize() == 2);
516 Str << "\t" << Opcode << "\t"; 516 Str << "\t" << Opcode << "\t";
517 getSrc(0)->emit(Func); 517 getSrc(0)->emit(Func);
518 Str << ", "; 518 Str << ", ";
519 emitRelocOp(Str, Reloc); 519 emitRelocOp(Str, Reloc);
520 Str << (Reloc ? "(" : "");
521 getSrc(1)->emit(Func); 520 getSrc(1)->emit(Func);
522 Str << (Reloc ? ")" : "");
523 } 521 }
524 522
525 void emitIAS(const Cfg *Func) const override { 523 void emitIAS(const Cfg *Func) const override {
526 (void)Func; 524 (void)Func;
527 llvm_unreachable("Not yet implemented"); 525 llvm_unreachable("Not yet implemented");
528 } 526 }
529 527
530 void dump(const Cfg *Func) const override { 528 void dump(const Cfg *Func) const override {
531 if (!BuildDefs::dump()) 529 if (!BuildDefs::dump())
532 return; 530 return;
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 template <> void InstMIPS32Mtlo::emit(const Cfg *Func) const; 849 template <> void InstMIPS32Mtlo::emit(const Cfg *Func) const;
852 template <> void InstMIPS32Mthi::emit(const Cfg *Func) const; 850 template <> void InstMIPS32Mthi::emit(const Cfg *Func) const;
853 template <> void InstMIPS32Mult::emit(const Cfg *Func) const; 851 template <> void InstMIPS32Mult::emit(const Cfg *Func) const;
854 template <> void InstMIPS32Multu::emit(const Cfg *Func) const; 852 template <> void InstMIPS32Multu::emit(const Cfg *Func) const;
855 template <> void InstMIPS32Lui::emit(const Cfg *Func) const; 853 template <> void InstMIPS32Lui::emit(const Cfg *Func) const;
856 854
857 } // end of namespace MIPS32 855 } // end of namespace MIPS32
858 } // end of namespace Ice 856 } // end of namespace Ice
859 857
860 #endif // SUBZERO_SRC_ICEINSTMIPS32_H 858 #endif // SUBZERO_SRC_ICEINSTMIPS32_H
OLDNEW
« no previous file with comments | « no previous file | src/IceInstMIPS32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698