OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.c-torture/] [unsorted/] [logic.c] - Diff between revs 297 and 384

Only display areas with differences | Details | Blame | View Log

Rev 297 Rev 384
logic (a, b)
logic (a, b)
     int *a, b;
     int *a, b;
{
{
  if (*a & 123)
  if (*a & 123)
    b = 1;
    b = 1;
  if (*a & ~222)
  if (*a & ~222)
    b = 2;
    b = 2;
  if (124 & *a)
  if (124 & *a)
    b = 3;
    b = 3;
  if (~111 & *a)
  if (~111 & *a)
    b = 4;
    b = 4;
 
 
  if (~*a & 23)
  if (~*a & 23)
    b = 1;
    b = 1;
  if (~*a & ~22)
  if (~*a & ~22)
    b = 2;
    b = 2;
  if (24 & ~*a)
  if (24 & ~*a)
    b = 3;
    b = 3;
  if (~11 & ~*a)
  if (~11 & ~*a)
    b = 4;
    b = 4;
 
 
  if (~*a & b)
  if (~*a & b)
    b = 1;
    b = 1;
  if (~*a & ~b)
  if (~*a & ~b)
    b = 2;
    b = 2;
  if (*a & ~*a)
  if (*a & ~*a)
    b = 3;
    b = 3;
  return b;
  return b;
}
}
 
 
x (a, b, c)
x (a, b, c)
{
{
  for (a = 0;  --a > 0;);
  for (a = 0;  --a > 0;);
  for (b = -1; --b > 0;);
  for (b = -1; --b > 0;);
  for (c = -65536; --c > 0;);
  for (c = -65536; --c > 0;);
  return a + b + c;
  return a + b + c;
}
}
 
 

powered by: WebSVN 2.1.0

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