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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr50290.c] - Blame information for rev 750

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

Line No. Rev Author Line
1 689 jeremybenn
/* PR rtl-optimization/50290 */
2
/* { dg-do run } */
3
/* { dg-options "-O2 -fno-tree-loop-optimize -fno-tree-vrp -funroll-loops" } */
4
 
5
static int
6
bar (int t[], int b)
7
{
8
  int i;
9
  for (i = 0; i < b; i++)
10
    t[i] = i + (i > 0 ? t[i - 1] : 0);
11
  return t[b - 1];
12
}
13
 
14
static int
15
foo (int b)
16
{
17
  int x[b];
18
  return bar (x, b);
19
}
20
 
21
int
22
main ()
23
{
24
  if (foo (6) != 15)
25
    __builtin_abort ();
26
  return 0;
27
}

powered by: WebSVN 2.1.0

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