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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [pr49771.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
#include <stdlib.h>
2
#include <stdarg.h>
3
 
4
static int a[1000];
5
 
6
int
7
foo (void)
8
{
9
  int j;
10
  int i;
11
  for (i = 0; i < 1000; i++)
12
    for (j = 0; j < 1000; j++)
13
      a[j] = a[i] + 1;
14
  return a[0];
15
}
16
 
17
int
18
main (void)
19
{
20
  int res = foo ();
21
  if (res != 1999)
22
    abort ();
23
  return 0;
24
}
25
 
26
/* { dg-final { cleanup-tree-dump "vect" } } */

powered by: WebSVN 2.1.0

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