OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [pr27335.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -funroll-loops" } */
3
 
4
extern void bar () __attribute__ ((noreturn));
5
 
6
inline double
7
baz (double *x, unsigned int y)
8
{
9
  if (y >= 6)
10
    bar ();
11
  return x[y];
12
}
13
 
14
double *a, *b;
15
 
16
void
17
foo ()
18
{
19
  unsigned int r, s, t;
20
 
21
  for (r = 0; r < 2; r++)
22
    for (t = 0; t < 2; t++)
23
      {
24
        for (s = 0; s < 3; s++)
25
          b[r * 2 + t] += baz (a, 3 * s + t);
26
      }
27
}

powered by: WebSVN 2.1.0

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