aboutsummaryrefslogtreecommitdiffstats
path: root/test/kvx/instr/builtin64.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/kvx/instr/builtin64.c')
-rw-r--r--test/kvx/instr/builtin64.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/kvx/instr/builtin64.c b/test/kvx/instr/builtin64.c
new file mode 100644
index 00000000..252eb2c6
--- /dev/null
+++ b/test/kvx/instr/builtin64.c
@@ -0,0 +1,17 @@
+#include "framework.h"
+
+BEGIN_TEST(long long)
+ long long *ptr = &c;
+#ifdef __KVX__
+ long long d = c;
+ a = __builtin_kvx_alclrd(ptr);
+ c = d;
+ c += a;
+
+ c += __builtin_clzll(a);
+
+ /* Removed the AFADDD builtin who was incorrect in CompCert, see #157 */
+ // a = __builtin_kvx_afaddd(ptr, a);
+ // a = __builtin_kvx_afaddd(ptr, a);
+#endif
+END_TEST64()