Index: test/cctest/test-hashing.cc |
diff --git a/test/cctest/test-hashing.cc b/test/cctest/test-hashing.cc |
index a6e022ee4d5bb7b0f6c95a193616c00dd848b2a6..0e2c6676e2eafea5c63c2dfeefd0fdc94b5f2026 100644 |
--- a/test/cctest/test-hashing.cc |
+++ b/test/cctest/test-hashing.cc |
@@ -114,11 +114,11 @@ void generate(MacroAssembler* masm, i::Vector<const uint8_t> string) { |
__ Pop(xzr, root); |
__ Ret(); |
__ SetStackPointer(old_stack_pointer); |
-#elif V8_TARGET_ARCH_MIPS |
+#elif V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 |
__ push(kRootRegister); |
__ InitializeRootRegister(); |
- __ li(v0, Operand(0)); |
+ __ mov(v0, zero_reg); |
__ li(t1, Operand(string.at(0))); |
StringHelper::GenerateHashInit(masm, v0, t1); |
for (int i = 1; i < string.length(); i++) { |
@@ -170,7 +170,7 @@ void generate(MacroAssembler* masm, uint32_t key) { |
__ Pop(xzr, root); |
__ Ret(); |
__ SetStackPointer(old_stack_pointer); |
-#elif V8_TARGET_ARCH_MIPS |
+#elif V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 |
__ push(kRootRegister); |
__ InitializeRootRegister(); |
__ li(v0, Operand(key)); |