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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.c-torture/] [unsorted/] [ac.c] - Blame information for rev 384

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
barfoo (a)
2
{
3
  return (a << 16) & ~0xffff;
4
}
5
 
6
foobar (a)
7
{
8
  return ((unsigned short) a) << 15;}
9
 
10
foo (a)
11
{
12
  return (a & 0x121) << 31;
13
}
14
 
15
bar (a)
16
{
17
  return (a & ~0xffff) << 16;
18
}
19
 
20
main ()
21
{
22
  int a;
23
 
24
  for (a = 1;  a; a += a)
25
    {
26
      printf ("%d", (foo (a)));
27
    }
28
  puts ("");
29
}
30
 

powered by: WebSVN 2.1.0

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