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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [graphite/] [pr46970.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-Os -ftree-loop-linear" } */
3
 
4
#define N 16
5
 
6
int
7
main1 (int n, int *a)
8
{
9
  int i, j;
10
 
11
  for (i = 0; i < n; i++)
12
    for (j = 0; j < n; j++)
13
      a[j] = i + n;
14
 
15
  for (j = 0; j < n; j++)
16
    if (a[j] != i + n - 1)
17
      __builtin_abort ();
18
 
19
  return 0;
20
}
21
 
22
int
23
main ()
24
{
25
  int a[N];
26
  main1 (N, a);
27
  return 0;
28
}

powered by: WebSVN 2.1.0

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