URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr43415.c] - Rev 745
Go to most recent revision | Compare with Previous | Blame | View Log
int main() { unsigned long long table[256]; unsigned int i; for (i=0; i<256; ++i) { unsigned long long j; unsigned char x=i; for (j=0; j<5; ++j) { x += x<<1; x ^= x>>1; } for (j=0; j<5; ++j) { x += x<<1; x ^= x>>1; } for (j=0; j<5; ++j) { x += x<<1; x ^= x>>1; } for (j=0; j<5; ++j) { x += x<<1; x ^= x>>1; } for (j=0; j<5; ++j) { x += x<<1; x ^= x>>1; } table[i] ^= (((unsigned long long)x)<<16); } for (i=0; i<256; ++i) { if ((table[i]&0xff)==i) return 1; } return 0; }
Go to most recent revision | Compare with Previous | Blame | View Log