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

Side by Side Diff: src/IceInstMIPS32.cpp

Issue 2377783002: Subzero, MIPS32: MOVZ instruction encoding (Closed)
Patch Set: Created 4 years, 2 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') | 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/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 971 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 template <> void InstMIPS32Movn_s::emitIAS(const Cfg *Func) const { 982 template <> void InstMIPS32Movn_s::emitIAS(const Cfg *Func) const {
983 auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>(); 983 auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
984 Asm->movn_s(getDest(), getSrc(0), getSrc(1)); 984 Asm->movn_s(getDest(), getSrc(0), getSrc(1));
985 } 985 }
986 986
987 template <> void InstMIPS32Movt::emitIAS(const Cfg *Func) const { 987 template <> void InstMIPS32Movt::emitIAS(const Cfg *Func) const {
988 auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>(); 988 auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
989 Asm->movt(getDest(), getSrc(1), getSrc(2)); 989 Asm->movt(getDest(), getSrc(1), getSrc(2));
990 } 990 }
991 991
992 template <> void InstMIPS32Movz::emitIAS(const Cfg *Func) const {
993 auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
994 Asm->movz(getDest(), getSrc(0), getSrc(1));
995 }
996
992 template <> void InstMIPS32Movz_d::emitIAS(const Cfg *Func) const { 997 template <> void InstMIPS32Movz_d::emitIAS(const Cfg *Func) const {
993 auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>(); 998 auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
994 Asm->movz_d(getDest(), getSrc(0), getSrc(1)); 999 Asm->movz_d(getDest(), getSrc(0), getSrc(1));
995 } 1000 }
996 1001
997 template <> void InstMIPS32Movz_s::emitIAS(const Cfg *Func) const { 1002 template <> void InstMIPS32Movz_s::emitIAS(const Cfg *Func) const {
998 auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>(); 1003 auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
999 Asm->movz_s(getDest(), getSrc(0), getSrc(1)); 1004 Asm->movz_s(getDest(), getSrc(0), getSrc(1));
1000 } 1005 }
1001 1006
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1192 Asm->xor_(getDest(), getSrc(0), getSrc(1)); 1197 Asm->xor_(getDest(), getSrc(0), getSrc(1));
1193 } 1198 }
1194 1199
1195 template <> void InstMIPS32Xori::emitIAS(const Cfg *Func) const { 1200 template <> void InstMIPS32Xori::emitIAS(const Cfg *Func) const {
1196 auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>(); 1201 auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
1197 Asm->xori(getDest(), getSrc(0), Imm); 1202 Asm->xori(getDest(), getSrc(0), Imm);
1198 } 1203 }
1199 1204
1200 } // end of namespace MIPS32 1205 } // end of namespace MIPS32
1201 } // end of namespace Ice 1206 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceInstMIPS32.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698