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

Side by Side Diff: src/IceInstMIPS32.cpp

Issue 2375923002: Subzero, MIPS32: SRAV 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') | tests_lit/assembler/mips32/encoding_test_arith.ll » ('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 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after
1132 template <> void InstMIPS32Sqrt_s::emitIAS(const Cfg *Func) const { 1132 template <> void InstMIPS32Sqrt_s::emitIAS(const Cfg *Func) const {
1133 auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>(); 1133 auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
1134 Asm->sqrt_s(getDest(), getSrc(0)); 1134 Asm->sqrt_s(getDest(), getSrc(0));
1135 } 1135 }
1136 1136
1137 template <> void InstMIPS32Sra::emitIAS(const Cfg *Func) const { 1137 template <> void InstMIPS32Sra::emitIAS(const Cfg *Func) const {
1138 auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>(); 1138 auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
1139 Asm->sra(getDest(), getSrc(0), Imm); 1139 Asm->sra(getDest(), getSrc(0), Imm);
1140 } 1140 }
1141 1141
1142 template <> void InstMIPS32Srav::emitIAS(const Cfg *Func) const {
1143 auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
1144 Asm->srav(getDest(), getSrc(0), getSrc(1));
1145 }
1146
1142 template <> void InstMIPS32Srl::emitIAS(const Cfg *Func) const { 1147 template <> void InstMIPS32Srl::emitIAS(const Cfg *Func) const {
1143 auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>(); 1148 auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
1144 Asm->srl(getDest(), getSrc(0), Imm); 1149 Asm->srl(getDest(), getSrc(0), Imm);
1145 } 1150 }
1146 1151
1147 template <> void InstMIPS32Srlv::emitIAS(const Cfg *Func) const { 1152 template <> void InstMIPS32Srlv::emitIAS(const Cfg *Func) const {
1148 auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>(); 1153 auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
1149 Asm->srlv(getDest(), getSrc(0), getSrc(1)); 1154 Asm->srlv(getDest(), getSrc(0), getSrc(1));
1150 } 1155 }
1151 1156
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
1202 Asm->xor_(getDest(), getSrc(0), getSrc(1)); 1207 Asm->xor_(getDest(), getSrc(0), getSrc(1));
1203 } 1208 }
1204 1209
1205 template <> void InstMIPS32Xori::emitIAS(const Cfg *Func) const { 1210 template <> void InstMIPS32Xori::emitIAS(const Cfg *Func) const {
1206 auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>(); 1211 auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
1207 Asm->xori(getDest(), getSrc(0), Imm); 1212 Asm->xori(getDest(), getSrc(0), Imm);
1208 } 1213 }
1209 1214
1210 } // end of namespace MIPS32 1215 } // end of namespace MIPS32
1211 } // end of namespace Ice 1216 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceInstMIPS32.h ('k') | tests_lit/assembler/mips32/encoding_test_arith.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698