URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [930603-3.c] - Rev 301
Go to most recent revision | Compare with Previous | Blame | View Log
f (b, c) unsigned char *b; int c; { unsigned long v = 0; switch (c) { case 'd': v = ((unsigned long)b[0] << 8) + b[1]; v >>= 9; break; case 'k': v = b[3] >> 4; break; default: abort (); } return v; } main () { char buf[4]; buf[0] = 170; buf[1] = 5; if (f (buf, 'd') != 85) abort (); exit (0); }
Go to most recent revision | Compare with Previous | Blame | View Log