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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
unsigned int foo (unsigned int a, unsigned int b)
2
{
3
  unsigned i;
4
  a = a & 1;
5
  for (i = 0; i < b; ++i)
6
    a = a << 1 | a >> (sizeof (unsigned int) * 8 - 1);
7
  return a;
8
}
9
extern void abort (void);
10
int main()
11
{
12
  if (foo (1, sizeof (unsigned int) * 8 + 1) != 2)
13
    abort ();
14
  return 0;
15
}

powered by: WebSVN 2.1.0

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