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/] [tree-ssa/] [loop-10.c] - Rev 298
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" } } */