Index: src/arm/lithium-arm.h |
diff --git a/src/arm/lithium-arm.h b/src/arm/lithium-arm.h |
index 0ba5e45a8fe1c67b99c9e197d89c53a088410fc5..678d07740bb0f36099800424eb8e134d3a55a5e8 100644 |
--- a/src/arm/lithium-arm.h |
+++ b/src/arm/lithium-arm.h |
@@ -135,6 +135,7 @@ class LCodeGen; |
V(MathMinMax) \ |
V(ModI) \ |
V(MulI) \ |
+ V(MultiplyAddD) \ |
V(NumberTagD) \ |
V(NumberTagI) \ |
V(NumberTagU) \ |
@@ -621,6 +622,24 @@ class LMulI: public LTemplateInstruction<1, 2, 1> { |
}; |
+// Instruction for computing multiplier * multiplicand + addend. |
+class LMultiplyAddD: public LTemplateInstruction<1, 3, 0> { |
+ public: |
+ LMultiplyAddD(LOperand* addend, LOperand* multiplier, |
+ LOperand* multiplicand) { |
+ inputs_[0] = addend; |
+ inputs_[1] = multiplier; |
+ inputs_[2] = multiplicand; |
+ } |
+ |
+ LOperand* addend() { return inputs_[0]; } |
+ LOperand* multiplier() { return inputs_[1]; } |
+ LOperand* multiplicand() { return inputs_[2]; } |
+ |
+ DECLARE_CONCRETE_INSTRUCTION(MultiplyAddD, "multiply-add-d") |
+}; |
+ |
+ |
class LCmpIDAndBranch: public LControlInstruction<2, 0> { |
public: |
LCmpIDAndBranch(LOperand* left, LOperand* right) { |
@@ -2396,6 +2415,8 @@ class LChunkBuilder BASE_EMBEDDED { |
HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) |
#undef DECLARE_DO |
+ LInstruction* DoMultiplyAdd(HMul* mul, HValue* addend); |
+ |
static bool HasMagicNumberForDivisor(int32_t divisor); |
static HValue* SimplifiedDividendForMathFloorOfDiv(HValue* val); |
static HValue* SimplifiedDivisorForMathFloorOfDiv(HValue* val); |