Updates:
        Summary: Incorrect code generated for LModI with power-of-2 divisor
        Status: Accepted
        Owner: [email protected]

Comment #1 on issue 1476 by [email protected]: Incorrect code generated for LModI with power-of-2 divisor
http://code.google.com/p/v8/issues/detail?id=1476

Thanks for the report!

This is a bug in code pattern generated for LModI with power-of-2 divisor and no bailout on minus zero. Reduced testcase:

function foo (i) { return (i % 2) | 0; }
if (foo(-1) != -1) throw new Error("FAIL");
if (foo(-1) != -1) throw new Error("FAIL");
%OptimizeFunctionOnNextCall(foo);
if (foo(-1) != -1) throw new Error("FAIL");



--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to