Index: test/cctest/test-code-stubs-mips.cc |
diff --git a/test/cctest/test-code-stubs-mips.cc b/test/cctest/test-code-stubs-mips.cc |
index 796aa1d6107fc1a4ddc1b2ec212ad70b1b8513b8..eb3ba02ce878a910ed2dd7275b1e772d0efd64ff 100644 |
--- a/test/cctest/test-code-stubs-mips.cc |
+++ b/test/cctest/test-code-stubs-mips.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()); |