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 149
Go to most recent revision | 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)); }
Go to most recent revision | Compare with Previous | Blame | View Log