Status: New
Owner: ----

New issue 3757 by [email protected]: XOR on ARMv6 when inside a loop
https://code.google.com/p/v8/issues/detail?id=3757

On ARMv6 when inside a loop, I am noticing bad results for XOR operations when inputs are over 32 bits long.
This works as expected on X86_64.

Sample code:

var s1 = '1010101010101010101010101010101';
var s2 = '1111111111111111111111111111111';

for (var n=0; n<2; n++) {
    if (n%2==0)
        s1+='1';
    else
        s1+='0';
    s2+='1';
    console.log((parseInt(s1, 2)^parseInt(s2, 2)).toString(2));
}

Expected output:

101010101010101010101010101010
1010101010101010101010101010101

Actual output:

1010101010101010101010101010100
101010101001

I think temporary variable re-used might be to blame as this always works as expected in the first iteration of the loop.

V8 version 3.22.24.19 (node.js v0.11.11-pre)


--
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/d/optout.

Reply via email to