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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.c-torture/] [unsorted/] [ac.c] - Blame information for rev 12

Details | Compare with Previous | View Log

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