Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index 4596aca2f7628e78bdd4bcc0d84bd5129abd348a..d4f88e80a2db20aca2bbbf2977aa398a396992f3 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -1148,6 +1148,19 @@ void LCodeGen::DoMulI(LMulI* instr) { |
} |
+void LCodeGen::DoMultiplyAddD(LMultiplyAddD* instr) { |
+ XMMRegister a = ToDoubleRegister(instr->a()); |
+ XMMRegister b = ToDoubleRegister(instr->b()); |
+ XMMRegister c = ToDoubleRegister(instr->c()); |
+ |
+ // This is computed in-place. |
+ ASSERT(a.is(ToDoubleRegister(instr->result()))); |
+ |
+ __ mulsd(a, b); |
+ __ addsd(a, c); |
+} |
+ |
+ |
void LCodeGen::DoBitI(LBitI* instr) { |
LOperand* left = instr->left(); |
LOperand* right = instr->right(); |