Skip to content

Commit

Permalink
Bug 1344597 - Baldr: MIPS: Fix trap type of unsigned divide by zero. …
Browse files Browse the repository at this point in the history
…r=luke

---
 js/src/jit/mips-shared/CodeGenerator-mips-shared.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  • Loading branch information
heiher committed Mar 7, 2017
1 parent 2878003 commit 7929efd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/jit/mips-shared/CodeGenerator-mips-shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2413,7 +2413,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;
Expand Down

0 comments on commit 7929efd

Please sign in to comment.