Status: New
Owner: ----
Labels: Type-Bug Priority-Medium
New issue 3040 by [email protected]: Truncated division breaks on
ia32 for certain inputs
http://code.google.com/p/v8/issues/detail?id=3040
Related to issue 3039, the same script breaks bleeding_edge builds on ia32.
function do_div(x, y) {
return (x / y) | 0;
}
do_div(1, 1);
%OptimizeFunctionOnNextCall(do_div);
do_div(1, 1);
do_div(-2147483648, -1);
The root of this is in HDiv::InferRange() where, if the output is
truncating to int32, kCanOverflow is cleared, so the test for (kMinInt /
-1) in LCodeGen::DoDivI() is skipped. I think on ia32, that test is still
required.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.