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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* This testcase exposed the same bug as PR 15342.  */
2
/* { dg-options "-O2 -frename-registers -fno-schedule-insns" } */
3
 
4
void *memcpy (void *, const void *, __SIZE_TYPE__);
5
 
6
void f (int n, int (*x)[4])
7
{
8
  while (n--)
9
    {
10
      int f = x[0][0];
11
      if (f <= 0)
12
        memcpy (&x[1], &x[0], sizeof (x[0]));
13
      else
14
        memcpy (&x[f], &x[0], sizeof (x[0]));
15
      f = x[0][2];
16
      x[0][1] = f;
17
    }
18
}

powered by: WebSVN 2.1.0

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