Bug 1455016 - [MIPS64] Fix potentially undefined behavior of rotateLeft64. r=bbouvier

--HG--
extra : rebase_source : 53dbf48894dbd96f761a787c0643523776f8ea80
This commit is contained in:
Dragan Mladjenovic 2018-04-18 09:36:00 -04:00
parent ce747b87c6
commit dd8829ace1

View File

@ -330,7 +330,7 @@ MacroAssemblerMIPS64::ma_dror(Register rd, Register rt, Register shift)
void
MacroAssemblerMIPS64::ma_drol(Register rd, Register rt, Register shift)
{
ma_negu(ScratchRegister, shift);
as_dsubu(ScratchRegister, zero, shift);
as_drotrv(rd, rt, ScratchRegister);
}