diff options
author | Jiaxun Yang <jiaxun.yang@flygoat.com> | 2020-05-12 12:40:05 +0800 |
---|---|---|
committer | Jiaxun Yang <jiaxun.yang@flygoat.com> | 2020-05-14 16:31:55 +0800 |
commit | 2a6e16fba0807c2bbf852c34966e0291997030d3 (patch) | |
tree | 0d5801d6ad612d4ab66d99ca008f29a08b98c378 /js | |
parent | a78f517c40f3c81bba5c2a718ee41af844ac7015 (diff) | |
download | uxp-2a6e16fba0807c2bbf852c34966e0291997030d3.tar.gz |
Bug 1323646 - IonMonkey: MIPS64: Fix range checking in ma_addTestOverflow
Tag: #1542
Diffstat (limited to 'js')
-rw-r--r-- | js/src/jit/mips64/MacroAssembler-mips64.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/jit/mips64/MacroAssembler-mips64.cpp b/js/src/jit/mips64/MacroAssembler-mips64.cpp index 7021d0f748..efdaac8d4a 100644 --- a/js/src/jit/mips64/MacroAssembler-mips64.cpp +++ b/js/src/jit/mips64/MacroAssembler-mips64.cpp @@ -497,7 +497,7 @@ void MacroAssemblerMIPS64::ma_addTestOverflow(Register rd, Register rs, Imm32 imm, L overflow) { // Check for signed range because of as_daddiu - if (Imm16::IsInSignedRange(imm.value) && Imm16::IsInUnsignedRange(imm.value)) { + if (Imm16::IsInSignedRange(imm.value)) { as_daddiu(SecondScratchReg, rs, imm.value); as_addiu(rd, rs, imm.value); ma_b(rd, SecondScratchReg, overflow, Assembler::NotEqual); |