Closed
Bug 893368
Opened 11 years ago
Closed 11 years ago
OdinMonkey: Incorrect result with (abs(INT_MIN) % 3)
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla25
People
(Reporter: jruderman, Assigned: bbouvier)
References
Details
(Keywords: regression, testcase)
Attachments
(1 file)
1.29 KB,
patch
|
nbp
:
review+
|
Details | Diff | Splinter Review |
function m(stdlib) { "use asm"; var abs = stdlib.Math.abs; function f(p) { p = p|0; return ((abs(p|0)|0) % 3)|0; } return f; } var f = m(this); assertEq(f(0x80000000), -2); With asm enabled: got 2, expected -2 Like bug 892291 (recently fixed), this started when bug 864400 landed, but might be a pre-existing range analysis bug.
Assignee | ||
Comment 1•11 years ago
|
||
Easy fixes, easy fixes everywhere.
Assignee: general → bbouvier
Status: NEW → ASSIGNED
Attachment #775920 -
Flags: review?(nicolas.b.pierron)
Updated•11 years ago
|
Attachment #775920 -
Flags: review?(nicolas.b.pierron) → review+
Assignee | ||
Comment 2•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/21154eef33ac
Comment 3•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/21154eef33ac
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
You need to log in
before you can comment on or make changes to this bug.
Description
•