Closed Bug 586267 Opened 11 years ago Closed 10 years ago
JM: Detect MUL overflow on ARM
From jsop_binary: ---- #if defined(JS_CPU_ARM) /* ARM cannot detect integer overflow with multiplication. */ || op == JSOP_MUL #endif /* JS_CPU_ARM */ ---- It is possible using this sequence: SMULL rLo, rHi, rA, rB CMP rHi, rLo, ASR #31 The 32-bit result will be in rLo. rHi can be any scratch register. The only caveat is that the sequence sets the Z flag, not the V flag.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 673314
You need to log in before you can comment on or make changes to this bug.