Status: New
Owner: ----
Labels: Type-Bug Priority-Medium
New issue 3039 by [email protected]: ARM: Division in simulator
breaks for certain inputs
http://code.google.com/p/v8/issues/detail?id=3039
Running this script under the simulator (ARM in this case, but others may
also be broken) causes a Floating point exception.
function do_div(x, y) {
return (x / y) | 0;
}
do_div(1, 1);
%OptimizeFunctionOnNextCall(do_div);
do_div(1, 1);
do_div(-2147483648, -1);
I think this is due to *div implementation in the simulator using integer
division, and MIN_INT / -1 being undefined in C.
Reproducible on x86 using GCC 4.6.x and 4.7.x. Correct result is obtained
when running natively on ARM hardware.
--
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.