| Index: test/cctest/test-code-stubs-mips64.cc
|
| diff --git a/test/cctest/test-code-stubs-mips.cc b/test/cctest/test-code-stubs-mips64.cc
|
| similarity index 93%
|
| copy from test/cctest/test-code-stubs-mips.cc
|
| copy to test/cctest/test-code-stubs-mips64.cc
|
| index 796aa1d6107fc1a4ddc1b2ec212ad70b1b8513b8..025a8ba04b5c81cf43cb161764c1f8939ca84a28 100644
|
| --- a/test/cctest/test-code-stubs-mips.cc
|
| +++ b/test/cctest/test-code-stubs-mips64.cc
|
| @@ -33,7 +33,7 @@
|
| #include "src/code-stubs.h"
|
| #include "src/factory.h"
|
| #include "src/macro-assembler.h"
|
| -#include "src/mips/constants-mips.h"
|
| +#include "src/mips64/constants-mips64.h"
|
| #include "src/simulator.h"
|
| #include "test/cctest/cctest.h"
|
| #include "test/cctest/test-code-stubs.h"
|
| @@ -67,7 +67,7 @@ ConvertDToIFunc MakeConvertDToIFuncTrampoline(Isolate* isolate,
|
| __ Move(f12, a0, a1);
|
| }
|
| // Push the double argument.
|
| - __ Subu(sp, sp, Operand(kDoubleSize));
|
| + __ Dsubu(sp, sp, Operand(kDoubleSize));
|
| __ sdc1(f12, MemOperand(sp));
|
| __ Move(source_reg, sp);
|
|
|
| @@ -83,7 +83,7 @@ ConvertDToIFunc MakeConvertDToIFuncTrampoline(Isolate* isolate,
|
| }
|
|
|
| // Re-push the double argument.
|
| - __ Subu(sp, sp, Operand(kDoubleSize));
|
| + __ Dsubu(sp, sp, Operand(kDoubleSize));
|
| __ sdc1(f12, MemOperand(sp));
|
|
|
| // Call through to the actual stub
|
| @@ -92,13 +92,13 @@ ConvertDToIFunc MakeConvertDToIFuncTrampoline(Isolate* isolate,
|
| __ TryInlineTruncateDoubleToI(destination_reg, f12, &done);
|
| if (destination_reg.is(source_reg) && !source_reg.is(sp)) {
|
| // Restore clobbered source_reg.
|
| - __ Addu(source_reg, sp, Operand(source_reg_offset));
|
| + __ Daddu(source_reg, sp, Operand(source_reg_offset));
|
| }
|
| }
|
| __ Call(start, RelocInfo::EXTERNAL_REFERENCE);
|
| __ bind(&done);
|
|
|
| - __ Addu(sp, sp, Operand(kDoubleSize));
|
| + __ Daddu(sp, sp, Operand(kDoubleSize));
|
|
|
| // Make sure no registers have been unexpectedly clobbered
|
| for (--reg_num; reg_num >= 2; --reg_num) {
|
| @@ -106,11 +106,11 @@ ConvertDToIFunc MakeConvertDToIFuncTrampoline(Isolate* isolate,
|
| if (!reg.is(destination_reg)) {
|
| __ lw(at, MemOperand(sp, 0));
|
| __ Assert(eq, kRegisterWasClobbered, reg, Operand(at));
|
| - __ Addu(sp, sp, Operand(kPointerSize));
|
| + __ Daddu(sp, sp, Operand(kPointerSize));
|
| }
|
| }
|
|
|
| - __ Addu(sp, sp, Operand(kDoubleSize));
|
| + __ Daddu(sp, sp, Operand(kDoubleSize));
|
|
|
| __ Move(v0, destination_reg);
|
| Label ok;
|
| @@ -165,9 +165,9 @@ TEST(ConvertDToI) {
|
| #endif
|
|
|
| Register source_registers[] = {
|
| - sp, v0, v1, a0, a1, a2, a3, t0, t1, t2, t3, t4, t5};
|
| + sp, v0, v1, a0, a1, a2, a3, a4, a5, a6, a7, t0, t1};
|
| Register dest_registers[] = {
|
| - v0, v1, a0, a1, a2, a3, t0, t1, t2, t3, t4, t5};
|
| + v0, v1, a0, a1, a2, a3, a4, a5, a6, a7, t0, t1};
|
|
|
| for (size_t s = 0; s < sizeof(source_registers) / sizeof(Register); s++) {
|
| for (size_t d = 0; d < sizeof(dest_registers) / sizeof(Register); d++) {
|
|
|