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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 689 jeremybenn
/* PR debug/47881 */
2
/* { dg-do compile } */
3
/* { dg-options "-O -fcompare-debug -fno-dce -funroll-loops -fno-web" } */
4
 
5
extern int data[];
6
 
7
int
8
foo (int *t, int *f, int n)
9
{
10
  int i = 0, a, b, c, d;
11
  while (data[*f] && n)
12
    n--;
13
  for (; i < n; i += 4)
14
    {
15
      a = data[*(f++) & 0x7f];
16
      c = data[*(f++) & 0x7f];
17
      c = data[*(f++) & 0x7f];
18
      d = data[*(f++) & 0x7f];
19
      if ((a & 0x80) || (b & 0x80) || (c & 0x80) || (d & 0x80))
20
        return 1;
21
      *(t++) = 16;
22
    }
23
  return 0;
24
}

powered by: WebSVN 2.1.0

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