From ff8603d7a2e51d2fd497493dfad7d4c8c7ee8d74 Mon Sep 17 00:00:00 2001 From: Jiaxun Yang Date: Tue, 12 May 2020 12:40:10 +0800 Subject: Bug 1390459 - mulby3 function implement error on mips platform Tag: #1542 --- js/src/jit/mips32/MacroAssembler-mips32-inl.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'js/src/jit/mips32/MacroAssembler-mips32-inl.h') diff --git a/js/src/jit/mips32/MacroAssembler-mips32-inl.h b/js/src/jit/mips32/MacroAssembler-mips32-inl.h index 4331e050e..a86cead29 100644 --- a/js/src/jit/mips32/MacroAssembler-mips32-inl.h +++ b/js/src/jit/mips32/MacroAssembler-mips32-inl.h @@ -302,8 +302,9 @@ MacroAssembler::neg64(Register64 reg) void MacroAssembler::mulBy3(Register src, Register dest) { - as_addu(dest, src, src); - as_addu(dest, dest, src); + MOZ_ASSERT(src != ScratchRegister); + as_addu(ScratchRegister, src, src); + as_addu(dest, ScratchRegister, src); } void -- cgit v1.2.3