aboutsummaryrefslogtreecommitdiffstats
path: root/test/mppa/instr/f64.c
diff options
context:
space:
mode:
authorCyril SIX <cyril.six@kalray.eu>2019-03-22 11:25:48 +0100
committerCyril SIX <cyril.six@kalray.eu>2019-03-22 11:25:48 +0100
commitf91b605c7dfea8b993f25acc3e5badca36d86fa6 (patch)
tree73086e179dae7e3b86388c64ac02e65472f74056 /test/mppa/instr/f64.c
parent1bc0ce716ff90a5384a70b5f9426108bb6380549 (diff)
parent4f45e2926fa9d0dba400ec6b6a1506c898cad13d (diff)
downloadcompcert-kvx-f91b605c7dfea8b993f25acc3e5badca36d86fa6.tar.gz
compcert-kvx-f91b605c7dfea8b993f25acc3e5badca36d86fa6.zip
Merge branch 'mppa_postpass' into mppa-mul
Diffstat (limited to 'test/mppa/instr/f64.c')
-rw-r--r--test/mppa/instr/f64.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/mppa/instr/f64.c b/test/mppa/instr/f64.c
new file mode 100644
index 00000000..be8094c9
--- /dev/null
+++ b/test/mppa/instr/f64.c
@@ -0,0 +1,8 @@
+#include "framework.h"
+
+BEGIN_TEST(double)
+ c = ((double)a + (double)b);
+ c += ((double)a * (double)b);
+ c += (-(double)a);
+ c += ((double)a - (double)b);
+END_TESTF64()