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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20061101-1.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 688 jeremybenn
/* PR rtl-optimization/28970 */
2
/* Origin: Peter Bergner <bergner@vnet.ibm.com> */
3
 
4
extern void abort (void);
5
 
6
int tar (int i)
7
{
8
  if (i != 36863)
9
    abort ();
10
 
11
  return -1;
12
}
13
 
14
void bug(int q, int bcount)
15
{
16
  int j = 0;
17
  int outgo = 0;
18
 
19
  while(j != -1)
20
    {
21
      outgo++;
22
      if (outgo > q-1)
23
        outgo = q-1;
24
      j = tar (outgo*bcount);
25
    }
26
}
27
 
28
int main(void)
29
{
30
  bug(5, 36863);
31
  return 0;
32
}

powered by: WebSVN 2.1.0

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