URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [loop-10.c] - Rev 300
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-optimized" } */ /* { dg-require-effective-target int32plus } */ int bar (void); void foo (void) { unsigned i, j, n; for (i = 0; i < 100000; i++) ; n = bar (); for (i = 0; i < n; i++) ; for (i = 0; i < n; i++) for (j = 0; j < n; j++) ; /* These should not be removed. */ for (i = 0; i < 10000; i++) bar (); for (i = 0; i != n; i += 2) ; } /* { dg-final { scan-tree-dump-times "if " 3 "optimized" } } */ /* { dg-final { scan-tree-dump-times "bar " 2 "optimized" } } */ /* { dg-final { cleanup-tree-dump "optimized" } } */
Go to most recent revision | Compare with Previous | Blame | View Log