diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2020-08-25 13:12:53 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2020-09-01 07:41:38 -0700 |
commit | 853c93ed0d7d462224a6d74c474cf89981a2561b (patch) | |
tree | 7e3e1e1f248e6ea952f86c35f09fa1675a575f1e | |
parent | 4c71dc37fb56bd41893c74cb5d164a2a009e8a1f (diff) | |
download | qemu-853c93ed0d7d462224a6d74c474cf89981a2561b.zip qemu-853c93ed0d7d462224a6d74c474cf89981a2561b.tar.gz qemu-853c93ed0d7d462224a6d74c474cf89981a2561b.tar.bz2 |
tests/tcg: Do not require FE_* exception bits
Define anything that is missing as 0, so that flags & FE_FOO
is false for any missing FOO.
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r-- | tests/tcg/multiarch/float_helpers.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/tcg/multiarch/float_helpers.h b/tests/tcg/multiarch/float_helpers.h index 6337bc6..309f3f4 100644 --- a/tests/tcg/multiarch/float_helpers.h +++ b/tests/tcg/multiarch/float_helpers.h @@ -8,6 +8,23 @@ #include <inttypes.h> +/* Some hosts do not have support for all of these; not required by ISO C. */ +#ifndef FE_OVERFLOW +#define FE_OVERFLOW 0 +#endif +#ifndef FE_UNDERFLOW +#define FE_UNDERFLOW 0 +#endif +#ifndef FE_DIVBYZERO +#define FE_DIVBYZERO 0 +#endif +#ifndef FE_INEXACT +#define FE_INEXACT 0 +#endif +#ifndef FE_INVALID +#define FE_INVALID 0 +#endif + /* Number of constants in each table */ int get_num_f16(void); int get_num_f32(void); |