Bug 1424978 - IonMonkey: MIPS: Fix ma_store_unaligned

Tag: #1542
This commit is contained in:
Jiaxun Yang 2020-05-12 12:40:11 +08:00 • committed by Roy Tam
commit 3479a798ea

View file

@ -616,7 +616,7 @@ MacroAssemblerMIPSShared::ma_store_unaligned(Register data, const BaseIndex& des
int16_t lowOffset, hiOffset;
Register base;
asMasm().computeEffectiveAddress(dest, SecondScratchReg);
asMasm().computeScaledAddress(dest, SecondScratchReg);
if (Imm16::IsInSignedRange(dest.offset) && Imm16::IsInSignedRange(dest.offset + size / 8 - 1)) {
base = SecondScratchReg;