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

Side by Side Diff: src/IceTargetLoweringMIPS32.h

Issue 2356293002: Subzero, MIPS32: Instruction NOR, pseudoinstruction NOT (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addressing review comments Created 4 years, 3 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.cpp ('k') | no next file » | 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/IceTargetLoweringMIPS32.h - MIPS32 lowering ---*- C++-*-===// 1 //===- subzero/src/IceTargetLoweringMIPS32.h - MIPS32 lowering ---*- 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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 void _mult(Variable *Dest, Variable *Src0, Variable *Src1) { 417 void _mult(Variable *Dest, Variable *Src0, Variable *Src1) {
418 Context.insert<InstMIPS32Mult>(Dest, Src0, Src1); 418 Context.insert<InstMIPS32Mult>(Dest, Src0, Src1);
419 } 419 }
420 420
421 void _multu(Variable *Dest, Variable *Src0, Variable *Src1) { 421 void _multu(Variable *Dest, Variable *Src0, Variable *Src1) {
422 Context.insert<InstMIPS32Multu>(Dest, Src0, Src1); 422 Context.insert<InstMIPS32Multu>(Dest, Src0, Src1);
423 } 423 }
424 424
425 void _nop() { Context.insert<InstMIPS32Sll>(getZero(), getZero(), 0); } 425 void _nop() { Context.insert<InstMIPS32Sll>(getZero(), getZero(), 0); }
426 426
427 void _nor(Variable *Dest, Variable *Src0, Variable *Src1) {
428 Context.insert<InstMIPS32Nor>(Dest, Src0, Src1);
429 }
430
431 void _not(Variable *Dest, Variable *Src0) {
432 Context.insert<InstMIPS32Nor>(Dest, Src0, getZero());
433 }
434
427 void _or(Variable *Dest, Variable *Src0, Variable *Src1) { 435 void _or(Variable *Dest, Variable *Src0, Variable *Src1) {
428 Context.insert<InstMIPS32Or>(Dest, Src0, Src1); 436 Context.insert<InstMIPS32Or>(Dest, Src0, Src1);
429 } 437 }
430 438
431 void _ori(Variable *Dest, Variable *Src, uint32_t Imm) { 439 void _ori(Variable *Dest, Variable *Src, uint32_t Imm) {
432 Context.insert<InstMIPS32Ori>(Dest, Src, Imm); 440 Context.insert<InstMIPS32Ori>(Dest, Src, Imm);
433 } 441 }
434 442
435 void _sdc1(Variable *Value, OperandMIPS32Mem *Mem) { 443 void _sdc1(Variable *Value, OperandMIPS32Mem *Mem) {
436 Context.insert<InstMIPS32Sdc1>(Value, Mem); 444 Context.insert<InstMIPS32Sdc1>(Value, Mem);
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 explicit TargetHeaderMIPS32(GlobalContext *Ctx); 857 explicit TargetHeaderMIPS32(GlobalContext *Ctx);
850 858
851 private: 859 private:
852 ~TargetHeaderMIPS32() = default; 860 ~TargetHeaderMIPS32() = default;
853 }; 861 };
854 862
855 } // end of namespace MIPS32 863 } // end of namespace MIPS32
856 } // end of namespace Ice 864 } // end of namespace Ice
857 865
858 #endif // SUBZERO_SRC_ICETARGETLOWERINGMIPS32_H 866 #endif // SUBZERO_SRC_ICETARGETLOWERINGMIPS32_H
OLDNEW
« no previous file with comments | « src/IceInstMIPS32.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698