aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/include/ccomp_kvx_fixes.h
diff options
context:
space:
mode:
authorSylvain Boulmé <sylvain.boulme@univ-grenoble-alpes.fr>2020-10-21 09:15:40 +0200
committerSylvain Boulmé <sylvain.boulme@univ-grenoble-alpes.fr>2020-10-21 09:15:40 +0200
commit0f47c1dbf3cee6845df9c4c3da0924ed4e10a9c4 (patch)
treeb0799e5d8e4ae62a9ae47c5358a62630c7a4efc3 /runtime/include/ccomp_kvx_fixes.h
parent647471e5b084703d1c817c02ef4298c474d3d571 (diff)
parent3f99a42035389b1953030af8490a5ec18a64394f (diff)
downloadcompcert-kvx-0f47c1dbf3cee6845df9c4c3da0924ed4e10a9c4.tar.gz
compcert-kvx-0f47c1dbf3cee6845df9c4c3da0924ed4e10a9c4.zip
Merge branch 'kvx-work' into aarch64_block_bodystar
Diffstat (limited to 'runtime/include/ccomp_kvx_fixes.h')
-rw-r--r--runtime/include/ccomp_kvx_fixes.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/runtime/include/ccomp_kvx_fixes.h b/runtime/include/ccomp_kvx_fixes.h
index 65d65e7b..a518a069 100644
--- a/runtime/include/ccomp_kvx_fixes.h
+++ b/runtime/include/ccomp_kvx_fixes.h
@@ -33,13 +33,26 @@ extern __int128 __compcert_acswapd(void *address, unsigned long long new_value,
#define __builtin_kvx_acswapw __compcert_acswapw
extern __int128 __compcert_acswapw(void *address, unsigned long long new_value, unsigned long long old_value);
+#define __builtin_kvx_aladdd __compcert_aladdd
+extern long long __compcert_aladdd(void *address, unsigned long long incr);
+
+#define __builtin_kvx_aladdw __compcert_aladdw
+extern int __compcert_aladdw(void *address, unsigned int incr);
+
#define __builtin_kvx_afaddd __compcert_afaddd
extern long long __compcert_afaddd(void *address, unsigned long long incr);
#define __builtin_kvx_afaddw __compcert_afaddw
extern int __compcert_afaddw(void *address, unsigned int incr);
-#endif
+
+#define __builtin_kvx_ld __compcert_ld
+extern int __compcert_ld(void *address, const char *str, const int b);
+
+#define __builtin_kvx_lwz __compcert_lwz
+extern int __compcert_lwz(void *address, const char *str, const int b);
/* #define __builtin_expect(x, y) (x) */
#define __builtin_ctz(x) __builtin_kvx_ctzw(x)
#define __builtin_clz(x) __builtin_kvx_clzw(x)
+
+#endif