OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |