Status: Accepted
Owner: svenpa...@chromium.org
CC: yang...@chromium.org
Labels: Type-Bug Priority-Medium
New issue 3259 by yang...@chromium.org: Floor of div on ARM returns
incorrect results.
http://code.google.com/p/v8/issues/detail?id=3259
The following variation of math-floor-of-div-nosudiv.js fails:
// Flags: --allow-natives-syntax --nouse_inlining --noenable_sudiv
--trace-osr
function div(a, b) { return a / b; }
var limit = 0x1000000;
var exhaustive_limit = 0x1000000;
var step = 10;
function test_div() {
var c = 0;
for (var k = 0; k <= limit; k++) {
if (k > exhaustive_limit) { c += step; k += c; }
assertEquals(Math.floor(div(k, -1)), Math.floor(k / -1));
}
}
test_div();
%OptimizeFunctionOnNextCall(test_div);
test_div();
$ out/arm.release/d8 --allow-natives-syntax --nouse_inlining
--noenable_sudiv --trace-osr test/mjsunit/mjsunit.js
test/mjsunit/math-floor-of-div-nosudiv.js
[OSR - patching back edges in test_div]
[OSR - Compiling: test_div at AST id 28]
[OSR - Entry at AST id 28, offset 52 in optimized code]
test/mjsunit/mjsunit.js:178: Failure: expected <-8197> found <-1>
throw new MjsUnitAssertionError(message);
^
Error
at new MjsUnitAssertionError (test/mjsunit/mjsunit.js:31:16)
at fail (test/mjsunit/mjsunit.js:178:11)
at assertEquals (test/mjsunit/mjsunit.js:249:7)
at test_div (test/mjsunit/math-floor-of-div-nosudiv.js:43:49)
at test/mjsunit/math-floor-of-div-nosudiv.js:47:1
This is currently blocking concurrent OSR, since OSR timing with concurrent
OSR running on an ARM device causes the unchanged
math-floor-of-div-nosudiv.js test to fail.
--
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
v8-dev@googlegroups.com
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 v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.