Index: test/cctest/test-code-stubs-mips64.cc |
diff --git a/test/cctest/test-code-stubs-mips64.cc b/test/cctest/test-code-stubs-mips64.cc |
index 9f146f65fd9698e643190fa4fbb9a6caa95bd842..1415cec0798eacbc662c231fa0f1876ec5f9712c 100644 |
--- a/test/cctest/test-code-stubs-mips64.cc |
+++ b/test/cctest/test-code-stubs-mips64.cc |
@@ -62,6 +62,11 @@ ConvertDToIFunc MakeConvertDToIFuncTrampoline(Isolate* isolate, |
// Save callee save registers. |
__ MultiPush(kCalleeSaved | ra.bit()); |
+ // Save callee-saved FPU registers. |
+ __ MultiPushFPU(kCalleeSavedFPU); |
+ // Set up the reserved register for 0.0. |
+ __ Move(kDoubleRegZero, 0.0); |
+ |
// For softfp, move the input value into f12. |
if (IsMipsSoftFloatABI) { |
__ Move(f12, a0, a1); |
@@ -117,6 +122,9 @@ ConvertDToIFunc MakeConvertDToIFuncTrampoline(Isolate* isolate, |
__ Branch(&ok, eq, v0, Operand(zero_reg)); |
__ bind(&ok); |
+ // Restore callee-saved FPU registers. |
+ __ MultiPopFPU(kCalleeSavedFPU); |
+ |
// Restore callee save registers. |
__ MultiPop(kCalleeSaved | ra.bit()); |