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

Subversion Repositories openrisc

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

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

/* PR debug/45105 */
/* { dg-do compile } */
/* { dg-options "-Os -fcompare-debug" } */
 
extern int *baz (int *, int *);
 
void
bar (int *p1, int *p2)
{
  int n = *baz (0, 0);
  p1[n] = p2[n];
}
 
void
foo (int *p, int l)
{
  int a1[32];
  int a2[32];
  baz (a1, a2);
  while (l)
    {
      if (l & 1)
	p = baz (a2, p);
      l--;
      bar (a1, a2);
    }
}
 

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.