[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 03/77] tests/tcg: Do not require FE_* exception bits
From: |
Richard Henderson |
Subject: |
[PATCH 03/77] tests/tcg: Do not require FE_* exception bits |
Date: |
Tue, 25 Aug 2020 13:58:36 -0700 |
Define anything that is missing as 0, so that flags & FE_FOO
is false for any missing FOO.
Cc: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
tests/tcg/multiarch/float_helpers.h | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/tests/tcg/multiarch/float_helpers.h
b/tests/tcg/multiarch/float_helpers.h
index 6337bc66c1..309f3f4bf1 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);
--
2.25.1
- [PATCH 00/77] target/microblaze improvements, Richard Henderson, 2020/08/25
- [PATCH 01/77] tests/tcg: Add microblaze to arches filter, Richard Henderson, 2020/08/25
- [PATCH 02/77] tests/tcg: Do not require FE_TOWARDZERO, Richard Henderson, 2020/08/25
- [PATCH 03/77] tests/tcg: Do not require FE_* exception bits,
Richard Henderson <=
- [PATCH 04/77] target/microblaze: Tidy gdbstub, Richard Henderson, 2020/08/25
- [PATCH 05/77] target/microblaze: Split out PC from env->sregs, Richard Henderson, 2020/08/25
- [PATCH 06/77] target/microblaze: Split out MSR from env->sregs, Richard Henderson, 2020/08/25
- [PATCH 08/77] target/microblaze: Split out ESR from env->sregs, Richard Henderson, 2020/08/25
- [PATCH 07/77] target/microblaze: Split out EAR from env->sregs, Richard Henderson, 2020/08/25
- [PATCH 09/77] target/microblaze: Split out FSR from env->sregs, Richard Henderson, 2020/08/25
- [PATCH 10/77] target/microblaze: Split out BTR from env->sregs, Richard Henderson, 2020/08/25
- [PATCH 11/77] target/microblaze: Split out EDR from env->sregs, Richard Henderson, 2020/08/25
- [PATCH 12/77] target/microblaze: Split the cpu_SR array, Richard Henderson, 2020/08/25