URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20070517-1.c] - Rev 849
Go to most recent revision | Compare with Previous | Blame | View Log
/* PR rtl-optimization/31691 */ /* Origin: Chi-Hua Chen <stephaniechc-gccbug@yahoo.com> */ extern void abort (void); static int get_kind(int) __attribute__ ((noinline)); static int get_kind(int v) { volatile int k = v; return k; } static int some_call(void) __attribute__ ((noinline)); static int some_call(void) { return 0; } static void example (int arg) { int tmp, kind = get_kind (arg); if (kind == 9 || kind == 10 || kind == 5) { if (some_call() == 0) { if (kind == 9 || kind == 10) tmp = arg; else abort(); } } } int main(void) { example(10); return 0; }
Go to most recent revision | Compare with Previous | Blame | View Log