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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [graphite/] [pr46761.c] - Rev 801

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

/* { dg-do run } */
/* { dg-options "-O -fgraphite-identity" } */
 
#define N 128
 
int
main ()
{
  int arr[N], i, s = 0;
  for (i = 0; i < N; i++)
    arr[i] = i;
 
  for (i = 0; i < N; i++)
    if (arr[i] != i)
      __builtin_abort ();
 
  for (i = 0; i < N; i++)
    s += arr[i];
  if (s != (N * (N - 1)) / 2)
    __builtin_abort ();
  return 0;
}
 

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

powered by: WebSVN 2.1.0

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