Closed Bug 725061 Opened 12 years ago Closed 12 years ago

IonMonkey: Assertion failure: opd->type() == phi->type(), at ion/Lowering.cpp:1302

Categories

(Core :: JavaScript Engine, defect)

Other Branch
x86_64
Linux
defect
Not set
major

Tracking

()

RESOLVED FIXED

People

(Reporter: decoder, Assigned: dvander)

References

Details

(Keywords: assertion, testcase)

Attachments

(1 file)

The following testcase asserts on ionmonkey revision c34398f961e7 (run with --ion -n -m), tested on 64 bit:


function testInt(n, result) {
    var x = 0;
    for (var i = 0; i < 15; i++) {
        if (x % 2 == 0)
            x = 10;
        else
            x %=  0;
    }
    for (var i = 0; i < 15; i++) {    }
}
testInt(2147483647, 2147483647);
testInt(-2147483648, -2147483648);
Attached patch fixSplinter Review
Don't fold MMod when doing so could change its result type.
Assignee: general → dvander
Status: NEW → ASSIGNED
Attachment #595608 - Flags: review?(jdemooij)
Attachment #595608 - Flags: review?(jdemooij) → review+
http://hg.mozilla.org/projects/ionmonkey/rev/fa22733dd172
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
A testcase for this bug was automatically identified at js/src/jit-test/tests/ion/bug725061.js.
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: