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.dg/] [torture/] [pr28230.c] - Rev 378
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do run } */ /* { dg-options "-fwrapv" } */ void foo( unsigned long long bb, unsigned short tn, unsigned e, unsigned* w ); void foo( unsigned long long bb, unsigned short tn, unsigned e, unsigned* w ) { unsigned n = tn + bb; do { e = (e > n) ? e : *w; n -= (e > n) ? n : e; if (*w) *w = 0; } while ( n ); } int main() { unsigned w = 0; foo( 0, 0, 0, &w ); return 0; }
Go to most recent revision | Compare with Previous | Blame | View Log