Paul Eggert wrote:
Matthew Woehlke <[EMAIL PROTECTED]> writes:
Nope, no luck, '0' in both cases, and adding a printf confirms the
correct values.
Can you strip down intparam1.c to relatively small test case that
illustrates the problem?
Sorry for taking so long, I am just now looking at this stuff again...
This simple test is OK on my Linux box and on NSK without -O. It does
not work /AT ALL/ (100% failure rate) on NSK with -O.
==== test.c
#include <stdio.h>
int main() {
long long n = 1;
int i;
for (i = 1; i < 63; i++) {
long long m = n<<i;
if (m>>i != n)
printf("shift %i failed\n", i);
}
return 0;
}
====
--
Matthew
"Try to bring it back in one piece this time." -- Q (MI6)
_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils