aboutsummaryrefslogtreecommitdiffstats
path: root/test/mppa
diff options
context:
space:
mode:
authorCyril SIX <cyril.six@kalray.eu>2019-09-03 11:26:25 +0200
committerCyril SIX <cyril.six@kalray.eu>2019-09-03 11:26:25 +0200
commite61ab603fbb538f8bd2dac543f622cafdb7cd39c (patch)
treea8f75d090a210b02663ab217d9216b8976481244 /test/mppa
parent0cb5a0b65b4fbeb5bc1c14f75951798f20500177 (diff)
downloadcompcert-kvx-e61ab603fbb538f8bd2dac543f622cafdb7cd39c.tar.gz
compcert-kvx-e61ab603fbb538f8bd2dac543f622cafdb7cd39c.zip
aclrw test
Diffstat (limited to 'test/mppa')
-rw-r--r--test/mppa/instr/builtin32.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/mppa/instr/builtin32.c b/test/mppa/instr/builtin32.c
new file mode 100644
index 00000000..c7689dc8
--- /dev/null
+++ b/test/mppa/instr/builtin32.c
@@ -0,0 +1,12 @@
+#include "framework.h"
+
+BEGIN_TEST(int)
+ int *ptr = &c;
+#ifdef __K1C__
+ int d = c;
+ a = __builtin_k1_alclrw(ptr);
+ c = d;
+
+#endif
+END_TEST32()
+