aboutsummaryrefslogtreecommitdiffstats
path: root/test/mppa
diff options
context:
space:
mode:
authorCyril SIX <cyril.six@kalray.eu>2019-02-12 17:05:04 +0100
committerCyril SIX <cyril.six@kalray.eu>2019-02-12 17:05:04 +0100
commitadfc93550f1e4948ed4f39d52a4f6eece9c8a35d (patch)
tree7f46e83f8828cd807319cca7ff461f99ebc2df0a /test/mppa
parent685c2f76b5f8b320495868cfdcadbf203f50a0bd (diff)
downloadcompcert-kvx-adfc93550f1e4948ed4f39d52a4f6eece9c8a35d.tar.gz
compcert-kvx-adfc93550f1e4948ed4f39d52a4f6eece9c8a35d.zip
Added Olongoffloat, Ofloatoflong and doubleconv test
Diffstat (limited to 'test/mppa')
-rw-r--r--test/mppa/instr/doubleconv.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/mppa/instr/doubleconv.c b/test/mppa/instr/doubleconv.c
new file mode 100644
index 00000000..e40c65e5
--- /dev/null
+++ b/test/mppa/instr/doubleconv.c
@@ -0,0 +1,9 @@
+#include "framework.h"
+
+double long2double(long v){
+ return v;
+}
+
+BEGIN_TEST(long)
+ c = (long) long2double(a) + (long) long2double(b) + (long) long2double(42.3);
+END_TEST()