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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [unsorted/] [ac.c] - Blame information for rev 714

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

Line No. Rev Author Line
1 688 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.