mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 16:58:38 +09:00
Bug 1344597 - Baldr: MIPS: Fix trap type of unsigned divide by zero
Tag: #1542
This commit is contained in:
parent
e9e90bb62c
commit
5a62948a43
1 changed files with 1 additions and 1 deletions
|
|
@ -2412,7 +2412,7 @@ CodeGeneratorMIPSShared::visitUDivOrMod(LUDivOrMod* ins)
|
|||
if (ins->canBeDivideByZero()) {
|
||||
if (ins->mir()->isTruncated()) {
|
||||
if (ins->trapOnError()) {
|
||||
masm.ma_b(rhs, rhs, trap(ins, wasm::Trap::InvalidConversionToInteger), Assembler::Zero);
|
||||
masm.ma_b(rhs, rhs, trap(ins, wasm::Trap::IntegerDivideByZero), Assembler::Zero);
|
||||
} else {
|
||||
// Infinity|0 == 0
|
||||
Label notzero;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue