Index: src/mips/lithium-codegen-mips.cc |
diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc |
index be130f64175937a72c38020f510f5e791d3f7f06..36bdff1fc4e1ac514d571324d0ab69de05baa987 100644 |
--- a/src/mips/lithium-codegen-mips.cc |
+++ b/src/mips/lithium-codegen-mips.cc |
@@ -3824,6 +3824,14 @@ void LCodeGen::DoMathRound(LMathRound* instr) { |
} |
+void LCodeGen::DoMathFround(LMathFround* instr) { |
+ DoubleRegister input = ToDoubleRegister(instr->value()); |
+ DoubleRegister result = ToDoubleRegister(instr->result()); |
+ __ cvt_s_d(result.low(), input); |
+ __ cvt_d_s(result, result.low()); |
+} |
+ |
+ |
void LCodeGen::DoMathSqrt(LMathSqrt* instr) { |
DoubleRegister input = ToDoubleRegister(instr->value()); |
DoubleRegister result = ToDoubleRegister(instr->result()); |