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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* PR debug/45105 */
2
/* { dg-do compile } */
3
/* { dg-options "-Os -fcompare-debug" } */
4
 
5
extern int *baz (int *, int *);
6
 
7
void
8
bar (int *p1, int *p2)
9
{
10
  int n = *baz (0, 0);
11
  p1[n] = p2[n];
12
}
13
 
14
void
15
foo (int *p, int l)
16
{
17
  int a1[32];
18
  int a2[32];
19
  baz (a1, a2);
20
  while (l)
21
    {
22
      if (l & 1)
23
        p = baz (a2, p);
24
      l--;
25
      bar (a1, a2);
26
    }
27
}

powered by: WebSVN 2.1.0

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