Index: src/arm/lithium-arm.cc |
diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc |
index ff6da03bb5811260b4add49b34bc8dff5bb838c6..f66cdec2b2e6f582baf0286a97f952c7a1b2bde7 100644 |
--- a/src/arm/lithium-arm.cc |
+++ b/src/arm/lithium-arm.cc |
@@ -1311,6 +1311,22 @@ LInstruction* LChunkBuilder::DoMul(HMul* instr) { |
} |
+LInstruction* LChunkBuilder::DoMultiplyAdd(HMultiplyAdd* instr) { |
+ //printf("LChunkBuilder::DoMultiplyAdd\n"); |
+ ASSERT(instr->representation().IsDouble()); |
+ ASSERT(instr->a()->representation().IsDouble()); |
+ ASSERT(instr->b()->representation().IsDouble()); |
+ ASSERT(instr->c()->representation().IsDouble()); |
+ |
+ // FIXME: Not entirely sure this is how to do it.. |
ulan_google
2012/11/07 09:54:03
This looks correct.
|
+ LOperand* a = UseRegisterAtStart(instr->a()); |
+ LOperand* b = UseRegisterAtStart(instr->b()); |
+ LOperand* c = UseRegisterAtStart(instr->c()); |
+ LMultiplyAdd* result = new(zone()) LMultiplyAdd(c, a, b); |
+ return DefineSameAsFirst(result); |
+} |
+ |
+ |
LInstruction* LChunkBuilder::DoSub(HSub* instr) { |
if (instr->representation().IsInteger32()) { |
ASSERT(instr->left()->representation().IsInteger32()); |