aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/nand
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-03-16 19:00:55 +0100
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-03-16 19:00:55 +0100
commit2227019e15866870f87488630f17cbb0797d1786 (patch)
tree2a69968dc2dae750de701aab41e634690396785e /test/monniaux/nand
parent4e3b46ca2a30abf520672f4b1a28f91f171f6e7e (diff)
downloadcompcert-kvx-2227019e15866870f87488630f17cbb0797d1786.tar.gz
compcert-kvx-2227019e15866870f87488630f17cbb0797d1786.zip
nxor
Diffstat (limited to 'test/monniaux/nand')
-rw-r--r--test/monniaux/nand/nand.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/monniaux/nand/nand.c b/test/monniaux/nand/nand.c
index 86cf84bd..f808f311 100644
--- a/test/monniaux/nand/nand.c
+++ b/test/monniaux/nand/nand.c
@@ -12,7 +12,11 @@ unsigned nor(unsigned x, unsigned y) {
return ~(x | y);
}
+unsigned nxor(unsigned x, unsigned y) {
+ return ~(x ^ y);
+}
+
int main() {
unsigned x = 0xF4, y = 0x33;
- printf("%X\n", nor(x, y));
+ printf("%X\n", nxor(x, y));
}