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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [loop-7.c] - Blame information for rev 711

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

Line No. Rev Author Line
1 688 jeremybenn
void foo (unsigned int n)
2
{
3
  int i, j = -1;
4
 
5
  for (i = 0; i < 10 && j < 0; i++)
6
    {
7
      if ((1UL << i) == n)
8
        j = i;
9
    }
10
 
11
  if (j < 0)
12
    abort ();
13
}
14
 
15
main()
16
{
17
  foo (64);
18
  exit (0);
19
}

powered by: WebSVN 2.1.0

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