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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [contrib/] [reghunt/] [examples/] [28970.c] - Blame information for rev 478

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

Line No. Rev Author Line
1 265 jeremybenn
extern void abort (void);
2
 
3
int tar (int i)
4
{
5
  if (i != 36863)
6
    abort ();
7
  return -1;
8
}
9
 
10
void bug(int q, int bcount)
11
{
12
  int j = 0;
13
  int outgo = 0;
14
 
15
  while(j != -1)
16
    {
17
      outgo++;
18
      if (outgo > q-1)
19
        outgo = q-1;
20
      j = tar (outgo*bcount);
21
    }
22
}
23
 
24
int main(void)
25
{
26
  bug(5, 36863);
27
  return 0;
28
}

powered by: WebSVN 2.1.0

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