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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
int
2
xorn (a, b)
3
     int a, b;
4
{
5
  return a ^ ~b;
6
}
7
 
8
int
9
not (a)
10
     int a;
11
{
12
  return ~a;
13
}
14
 
15
int
16
xor (a, b)
17
     int a, b;
18
{
19
  return a ^ b;
20
}
21
 
22
main ()
23
{
24
  int i, j;
25
 
26
  for (i = 0;  i <= 1;  i++)
27
    for (j = 0;  j <= 1;  j++)
28
      printf ("%d op %d = %d = %d?\n", i, j,
29
              1 & xor (i, not (j)),
30
              1 & xorn (i, j));
31
}

powered by: WebSVN 2.1.0

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