Closed
Bug 911368
Opened 11 years ago
Closed 11 years ago
OdinMonkey: Assertion failure: ins->mirRaw()->isDiv() || ins->mirRaw()->isAsmJSUDiv() || ins->mirRaw()->isAsmJSUMod(), at jit/arm/CodeGenerator-arm.cpp
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla26
People
(Reporter: gkw, Assigned: jonco)
References
Details
(Keywords: assertion, regression, testcase)
Attachments
(2 files)
12.24 KB,
text/plain
|
Details | |
1.59 KB,
patch
|
mjrosenb
:
review+
|
Details | Diff | Splinter Review |
(function (stdlib, heap) {
"use asm";
function f(i0) {
i0 = i0 | 0;
switch (0xc << (0xa % 1)) {
case -2:
};
}
})()
asserts js debug shell on ARM on m-c changeset 8c5a94ba1096 with --no-baseline --ion-eager --ion-gvn=off at Assertion failure: ins->mirRaw()->isDiv() || ins->mirRaw()->isAsmJSUDiv() || ins->mirRaw()->isAsmJSUMod(), at jit/arm/CodeGenerator-arm.cpp
My configure flags are:
--enable-optimize --enable-debug --enable-profiling --enable-gczeal --enable-debug-symbols --enable-methodjit --enable-type-inference --disable-tests --enable-more-deterministic --enable-threadsafe --with-ccache <other NSPR flags>
(If only --ion-eager was used, it seems to show the assertion in bug 879647.)
This may be a regression from whenever OdinMonkey landed, so setting needinfo from Luke.
Flags: needinfo?(luke)
Comment 1•11 years ago
|
||
Benjamin: do you suppose this is the recent switch patch?
Flags: needinfo?(luke)
Reporter | ||
Updated•11 years ago
|
Flags: needinfo?(bbouvier)
Comment 2•11 years ago
|
||
I don't think so. Seems like LIRGeneratorARM::lowerModI can call lowerUMod, that generates a LSoftUDivOrMod with a MMod as the attached mir value, hence the assertion. Not sure that simply adding "|| ins->mirRaw()->isMod()" would be enough to fix it, though.
Flags: needinfo?(bbouvier)
Comment 3•11 years ago
|
||
IIRC, this was the fix when a similar issue cropped up in the past.
Assignee | ||
Comment 5•11 years ago
|
||
Oh, yes, the assert is wrong, I'll fix it.
Assignee: general → jcoppeard
Status: NEW → ASSIGNED
Flags: needinfo?(jcoppeard)
Assignee | ||
Comment 6•11 years ago
|
||
As pointed out in comment 2, the assertion is wrong because these LIR nodes can be generated for an MMod too. This patch fixes the assertion and adds the test case.
Attachment #800656 -
Flags: review?(mrosenberg)
Updated•11 years ago
|
Attachment #800656 -
Flags: review?(mrosenberg) → review+
Assignee | ||
Comment 7•11 years ago
|
||
Comment 8•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
You need to log in
before you can comment on or make changes to this bug.
Description
•