aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/madd
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-03-19 07:23:15 +0100
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-03-19 07:23:15 +0100
commitbcfcbcb78d5aae904cac23d3e0a055c4d8cc8509 (patch)
tree5bd9359df0a621c6108fd91787572f8db2bb7398 /test/monniaux/madd
parentfdb8d0c7b5a8be87a64cb995f3abf5bc60f07bfd (diff)
downloadcompcert-kvx-bcfcbcb78d5aae904cac23d3e0a055c4d8cc8509.tar.gz
compcert-kvx-bcfcbcb78d5aae904cac23d3e0a055c4d8cc8509.zip
test for madd
Diffstat (limited to 'test/monniaux/madd')
-rw-r--r--test/monniaux/madd/madd_run.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/monniaux/madd/madd_run.c b/test/monniaux/madd/madd_run.c
new file mode 100644
index 00000000..d4238c53
--- /dev/null
+++ b/test/monniaux/madd/madd_run.c
@@ -0,0 +1,9 @@
+#include <stdio.h>
+
+extern unsigned madd(unsigned a, unsigned b, unsigned c);
+
+int main() {
+ unsigned a = 7, b = 3, c = 4;
+ printf("res = %u\n", madd(a, b, c));
+ return 0;
+}