Index: src/IceInstMIPS32.cpp |
diff --git a/src/IceInstMIPS32.cpp b/src/IceInstMIPS32.cpp |
index c83267d11166c748e01b80cbba755cc0903e9ab2..07dba659a149d5155e6097fbd4f1305cbdd3adf3 100644 |
--- a/src/IceInstMIPS32.cpp |
+++ b/src/IceInstMIPS32.cpp |
@@ -786,6 +786,46 @@ void InstMIPS32Mov::emitSingleDestSingleSource(const Cfg *Func) const { |
llvm::report_fatal_error("Invalid mov instruction. Dest or Src is memory."); |
} |
+template <> void InstMIPS32Add_d::emitIAS(const Cfg *Func) const { |
+ auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>(); |
+ Asm->add_d(getDest(), getSrc(0), getSrc(1)); |
+} |
+ |
+template <> void InstMIPS32Add_s::emitIAS(const Cfg *Func) const { |
+ auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>(); |
+ Asm->add_s(getDest(), getSrc(0), getSrc(1)); |
+} |
+ |
+template <> void InstMIPS32Div_d::emitIAS(const Cfg *Func) const { |
+ auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>(); |
+ Asm->div_d(getDest(), getSrc(0), getSrc(1)); |
+} |
+ |
+template <> void InstMIPS32Div_s::emitIAS(const Cfg *Func) const { |
+ auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>(); |
+ Asm->div_s(getDest(), getSrc(0), getSrc(1)); |
+} |
+ |
+template <> void InstMIPS32Mul_d::emitIAS(const Cfg *Func) const { |
+ auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>(); |
+ Asm->mul_d(getDest(), getSrc(0), getSrc(1)); |
+} |
+ |
+template <> void InstMIPS32Mul_s::emitIAS(const Cfg *Func) const { |
+ auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>(); |
+ Asm->mul_s(getDest(), getSrc(0), getSrc(1)); |
+} |
+ |
+template <> void InstMIPS32Sub_d::emitIAS(const Cfg *Func) const { |
+ auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>(); |
+ Asm->sub_d(getDest(), getSrc(0), getSrc(1)); |
+} |
+ |
+template <> void InstMIPS32Sub_s::emitIAS(const Cfg *Func) const { |
+ auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>(); |
+ Asm->sub_s(getDest(), getSrc(0), getSrc(1)); |
+} |
+ |
template <> void InstMIPS32Addiu::emitIAS(const Cfg *Func) const { |
auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>(); |
Asm->addiu(getDest(), getSrc(0), Imm); |