Index: src/compiler/x87/code-generator-x87.cc |
diff --git a/src/compiler/x87/code-generator-x87.cc b/src/compiler/x87/code-generator-x87.cc |
index b0d3203a3cbbf0ba371c5621a506541697c68b71..81e368667696582645673e87f670d7cc64f86b06 100644 |
--- a/src/compiler/x87/code-generator-x87.cc |
+++ b/src/compiler/x87/code-generator-x87.cc |
@@ -812,6 +812,18 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
} |
break; |
} |
+ case kX87MulPair: { |
+ __ imul(i.OutputRegister(1), i.InputOperand(0)); |
+ __ mov(i.TempRegister(0), i.InputOperand(1)); |
+ __ imul(i.TempRegister(0), i.InputOperand(2)); |
+ __ add(i.OutputRegister(1), i.TempRegister(0)); |
+ __ mov(i.OutputRegister(0), i.InputOperand(0)); |
+ // Multiplies the low words and stores them in eax and edx. |
+ __ mul(i.InputRegister(2)); |
+ __ add(i.OutputRegister(1), i.TempRegister(0)); |
+ |
+ break; |
+ } |
case kX87ShlPair: |
if (HasImmediateInput(instr, 2)) { |
__ ShlPair(i.InputRegister(1), i.InputRegister(0), i.InputInt6(2)); |