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/] [xorn.c] - Rev 154

Compare with Previous | Blame | View Log

int
xorn (a, b)
     int a, b;
{
  return a ^ ~b;
}
 
int
not (a)
     int a;
{
  return ~a;
}
 
int
xor (a, b)
     int a, b;
{
  return a ^ b;
}
 
main ()
{
  int i, j;
 
  for (i = 0;  i <= 1;  i++)
    for (j = 0;  j <= 1;  j++)
      printf ("%d op %d = %d = %d?\n", i, j,
	      1 & xor (i, not (j)),
	      1 & xorn (i, j));
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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