Index: src/mips64/lithium-codegen-mips64.cc |
diff --git a/src/mips64/lithium-codegen-mips64.cc b/src/mips64/lithium-codegen-mips64.cc |
index 4a625610d879295c86a0dbd00ab0bb0462c48483..d0a81f5998b4c578d6a1f8e7702c4b3643fbbbe7 100644 |
--- a/src/mips64/lithium-codegen-mips64.cc |
+++ b/src/mips64/lithium-codegen-mips64.cc |
@@ -3854,6 +3854,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, input); |
+ __ cvt_d_s(result, result); |
+} |
+ |
+ |
void LCodeGen::DoMathSqrt(LMathSqrt* instr) { |
DoubleRegister input = ToDoubleRegister(instr->value()); |
DoubleRegister result = ToDoubleRegister(instr->result()); |