diff options
author | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2020-03-27 16:53:59 +0100 |
---|---|---|
committer | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2020-03-27 16:53:59 +0100 |
commit | b46cdc3ade397a57a7b748946fb58e16e95bf42b (patch) | |
tree | 60b603a6f994f601d142be4f6a6f267d2d823086 | |
parent | 4dabb8cd9b292bb873155e02e430f79cb43dc629 (diff) | |
download | compcert-kvx-b46cdc3ade397a57a7b748946fb58e16e95bf42b.tar.gz compcert-kvx-b46cdc3ade397a57a7b748946fb58e16e95bf42b.zip |
fix broken test Makefile
fix math.h so that it does special things only on K1C
-rw-r--r-- | runtime/include/math.h | 7 | ||||
-rw-r--r-- | test/Makefile | 4 |
2 files changed, 10 insertions, 1 deletions
diff --git a/runtime/include/math.h b/runtime/include/math.h index d6475df1..01b8d8d8 100644 --- a/runtime/include/math.h +++ b/runtime/include/math.h @@ -1,6 +1,8 @@ #ifndef _COMPCERT_MATH_H #define _COMPCERT_MATH_H +#ifdef __K1C__ + #define isfinite(__y) (fpclassify((__y)) >= FP_ZERO) #include_next <math.h> @@ -16,4 +18,9 @@ #define fmaf(x, y, z) __builtin_fmaf((x),(y),(z)) #endif +#else + +#include_next <math.h> + +#endif #endif diff --git a/test/Makefile b/test/Makefile index 7efcd8f1..e9c5d6a1 100644 --- a/test/Makefile +++ b/test/Makefile @@ -4,7 +4,9 @@ include ../Makefile.config # Kalray note - removing compression, raytracer and spass that cannot be executed by the simulator in reasonable time ifeq ($(ARCH),mppa_k1c) - DIRS:=c regression + DIRS=c regression +else + DIRS=c compression raytracer spass regression endif ifeq ($(CLIGHTGEN),true) |