OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [graphite/] [pr35356-1.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-options "-O2 -fgraphite-identity -fdump-tree-graphite-all" } */
2
 
3
int a[100];
4
 
5
int
6
foo (int bar, int n, int k)
7
{
8
  int i;
9
 
10
  for (i = 0; i < n; i++)
11
    if (i == k)
12
      a[i] = bar;
13
 
14
  return a[bar];
15
}
16
 
17
/* There should be no loops generated for this testcase, instead we
18
   should generate the following:
19
 
20
   | if (k >= 0 && k < n)
21
   |   a[k] = bar;
22
 
23
*/
24
 
25
/* { dg-final { scan-tree-dump-times "loop_1" 0 "graphite" } } */
26
/* { dg-final { cleanup-tree-dump "graphite" } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.