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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [unsorted/] [ac.c] - Diff between revs 149 and 154

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
barfoo (a)
barfoo (a)
{
{
  return (a << 16) & ~0xffff;
  return (a << 16) & ~0xffff;
}
}
 
 
foobar (a)
foobar (a)
{
{
  return ((unsigned short) a) << 15;}
  return ((unsigned short) a) << 15;}
 
 
foo (a)
foo (a)
{
{
  return (a & 0x121) << 31;
  return (a & 0x121) << 31;
}
}
 
 
bar (a)
bar (a)
{
{
  return (a & ~0xffff) << 16;
  return (a & ~0xffff) << 16;
}
}
 
 
main ()
main ()
{
{
  int a;
  int a;
 
 
  for (a = 1;  a; a += a)
  for (a = 1;  a; a += a)
    {
    {
      printf ("%d", (foo (a)));
      printf ("%d", (foo (a)));
    }
    }
  puts ("");
  puts ("");
}
}
 
 
 
 

powered by: WebSVN 2.1.0

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