Index: src/IceInstMIPS32.cpp |
diff --git a/src/IceInstMIPS32.cpp b/src/IceInstMIPS32.cpp |
index 043c2cab9fe9c32f4e9b7b1dcb6444c7c067e57a..171008def52ce125e10afc5b9bea29a385f43664 100644 |
--- a/src/IceInstMIPS32.cpp |
+++ b/src/IceInstMIPS32.cpp |
@@ -57,8 +57,10 @@ template <> const char *InstMIPS32Add::Opcode = "add"; |
template <> const char *InstMIPS32Addu::Opcode = "addu"; |
template <> const char *InstMIPS32And::Opcode = "and"; |
template <> const char *InstMIPS32Andi::Opcode = "andi"; |
+template <> const char *InstMIPS32Mfc1::Opcode = "mfc1"; |
template <> const char *InstMIPS32Mfhi::Opcode = "mfhi"; |
template <> const char *InstMIPS32Mflo::Opcode = "mflo"; |
+template <> const char *InstMIPS32Mtc1::Opcode = "mtc1"; |
template <> const char *InstMIPS32Mthi::Opcode = "mthi"; |
template <> const char *InstMIPS32Mtlo::Opcode = "mtlo"; |
template <> const char *InstMIPS32Mul::Opcode = "mul"; |
@@ -247,6 +249,18 @@ void InstMIPS32::emitThreeAddr(const char *Opcode, const InstMIPS32 *Inst, |
Inst->getSrc(1)->emit(Func); |
} |
+void InstMIPS32::emitTwoAddr(const char *Opcode, const InstMIPS32 *Inst, |
+ const Cfg *Func) { |
+ if (!BuildDefs::dump()) |
+ return; |
+ Ostream &Str = Func->getContext()->getStrEmit(); |
+ assert(Inst->getSrcSize() == 1); |
+ Str << "\t" << Opcode << "\t"; |
+ Inst->getDest()->emit(Func); |
+ Str << ", "; |
+ Inst->getSrc(0)->emit(Func); |
+} |
+ |
void InstMIPS32::emitThreeAddrLoHi(const char *Opcode, const InstMIPS32 *Inst, |
const Cfg *Func) { |
if (!BuildDefs::dump()) |