URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.dg/] [graphite/] [pr35356-1.c] - Rev 686
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-options "-O2 -fgraphite-identity -fdump-tree-graphite-all" } */ int a[100]; int foo (int bar, int n, int k) { int i; for (i = 0; i < n; i++) if (i == k) a[i] = bar; return a[bar]; } /* There should be no loops generated for this testcase, instead we should generate the following: | if (k >= 0 && k < n) | a[k] = bar; */ /* { dg-final { scan-tree-dump-times "loop_1" 0 "graphite" } } */ /* { dg-final { cleanup-tree-dump "graphite" } } */
Go to most recent revision | Compare with Previous | Blame | View Log