aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/madd
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-03-19 19:35:30 +0100
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-03-19 19:35:30 +0100
commit196dbf8e545e0bed39696434c0425806b00da6e8 (patch)
tree8d7f7bec998d1ea7893e7e99d4936878b6c8a24f /test/monniaux/madd
parentaca4ae1dafde6156d2cdbfedf501bef6b28f8fae (diff)
downloadcompcert-kvx-196dbf8e545e0bed39696434c0425806b00da6e8.tar.gz
compcert-kvx-196dbf8e545e0bed39696434c0425806b00da6e8.zip
seems to work
Diffstat (limited to 'test/monniaux/madd')
-rw-r--r--test/monniaux/madd/madd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/monniaux/madd/madd.c b/test/monniaux/madd/madd.c
new file mode 100644
index 00000000..e1e5eeb7
--- /dev/null
+++ b/test/monniaux/madd/madd.c
@@ -0,0 +1,7 @@
+unsigned madd(unsigned a, unsigned b, unsigned c) {
+ return a + b*c;
+}
+
+unsigned madd2(unsigned a, unsigned b, unsigned c) {
+ return c + b*a;
+}