Index: src/mips/lithium-codegen-mips.cc |
diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc |
index 82924a5be48021ec6afef35bf4b898e06a4b8a3d..88effd4255e33b22113d94b6f9e63eda26bcc831 100644 |
--- a/src/mips/lithium-codegen-mips.cc |
+++ b/src/mips/lithium-codegen-mips.cc |
@@ -1143,6 +1143,18 @@ void LCodeGen::DoDivI(LDivI* instr) { |
} |
+void LCodeGen::DoMultiplyAddD(LMultiplyAddD* instr) { |
+ DoubleRegister addend = ToDoubleRegister(instr->addend()); |
+ DoubleRegister multiplier = ToDoubleRegister(instr->multiplier()); |
+ DoubleRegister multiplicand = ToDoubleRegister(instr->multiplicand()); |
+ |
+ // This is computed in-place. |
+ ASSERT(addend.is(ToDoubleRegister(instr->result()))); |
+ |
+ __ madd_d(addend, addend, multiplier, multiplicand); |
+} |
+ |
+ |
void LCodeGen::DoMulI(LMulI* instr) { |
Register scratch = scratch0(); |
Register result = ToRegister(instr->result()); |