Index: src/IceInstMIPS32.cpp |
diff --git a/src/IceInstMIPS32.cpp b/src/IceInstMIPS32.cpp |
index 1593bc15be5f5037338a6dc2ddb90e14fe00a85c..15bf2e1902458f67b3464b0ff9be302fda7ce76f 100644 |
--- a/src/IceInstMIPS32.cpp |
+++ b/src/IceInstMIPS32.cpp |
@@ -140,6 +140,7 @@ template <> const char *InstMIPS32Sub_s::Opcode = "sub.s"; |
template <> const char *InstMIPS32Subu::Opcode = "subu"; |
template <> const char *InstMIPS32Sw::Opcode = "sw"; |
template <> const char *InstMIPS32Swc1::Opcode = "swc1"; |
+template <> const char *InstMIPS32Teq::Opcode = "teq"; |
template <> const char *InstMIPS32Trunc_l_d::Opcode = "trunc.l.d"; |
template <> const char *InstMIPS32Trunc_l_s::Opcode = "trunc.l.s"; |
template <> const char *InstMIPS32Trunc_w_d::Opcode = "trunc.w.d"; |
@@ -989,6 +990,11 @@ template <> void InstMIPS32Sw::emitIAS(const Cfg *Func) const { |
Asm->sw(getSrc(0), Mem->getBase(), Imm); |
} |
+template <> void InstMIPS32Teq::emitIAS(const Cfg *Func) const { |
+ auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>(); |
+ Asm->teq(getSrc(0), getSrc(1), getTrapCode()); |
+} |
+ |
template <> void InstMIPS32Trunc_l_d::emitIAS(const Cfg *Func) const { |
auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>(); |
Asm->trunc_l_d(getDest(), getSrc(0)); |