aboutsummaryrefslogtreecommitdiffstats
path: root/test/mppa
diff options
context:
space:
mode:
authorCyril SIX <cyril.six@kalray.eu>2019-01-22 16:18:22 +0100
committerCyril SIX <cyril.six@kalray.eu>2019-01-22 16:18:22 +0100
commit6acefcbbc51aa7d2edb7b2098a5b15d06e742604 (patch)
tree7c82b4e1c690ec27171dab9c15630818f08270c9 /test/mppa
parent8909fb3df6fd282d6b8f24b288ef5d7ddbdb741a (diff)
downloadcompcert-kvx-6acefcbbc51aa7d2edb7b2098a5b15d06e742604.tar.gz
compcert-kvx-6acefcbbc51aa7d2edb7b2098a5b15d06e742604.zip
Added sxwd and zxwd support
Diffstat (limited to 'test/mppa')
-rw-r--r--test/mppa/instr/cast_S32_S64.c7
-rw-r--r--test/mppa/instr/cast_S64_U32.c7
-rw-r--r--test/mppa/instr/cast_U32_S64.c7
3 files changed, 21 insertions, 0 deletions
diff --git a/test/mppa/instr/cast_S32_S64.c b/test/mppa/instr/cast_S32_S64.c
new file mode 100644
index 00000000..09c97e00
--- /dev/null
+++ b/test/mppa/instr/cast_S32_S64.c
@@ -0,0 +1,7 @@
+#include "framework.h"
+
+BEGIN_TEST(int)
+{
+ c = (long long) a;
+}
+END_TEST32()
diff --git a/test/mppa/instr/cast_S64_U32.c b/test/mppa/instr/cast_S64_U32.c
new file mode 100644
index 00000000..da49b2a8
--- /dev/null
+++ b/test/mppa/instr/cast_S64_U32.c
@@ -0,0 +1,7 @@
+#include "framework.h"
+
+BEGIN_TEST(long long)
+{
+ c = (unsigned int) a;
+}
+END_TEST()
diff --git a/test/mppa/instr/cast_U32_S64.c b/test/mppa/instr/cast_U32_S64.c
new file mode 100644
index 00000000..b6bcdf6a
--- /dev/null
+++ b/test/mppa/instr/cast_U32_S64.c
@@ -0,0 +1,7 @@
+#include "framework.h"
+
+BEGIN_TEST(unsigned int)
+{
+ c = (long long) a;
+}
+END_TEST()