aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2020-08-25 13:11:43 -0700
committerRichard Henderson <richard.henderson@linaro.org>2020-09-01 07:41:38 -0700
commit4c71dc37fb56bd41893c74cb5d164a2a009e8a1f (patch)
tree8778b2d409797813e0fcc29bffa95c1ab182b388
parentcdc05fb4c3b47c5f2d1abd71dbec034436012056 (diff)
downloadqemu-4c71dc37fb56bd41893c74cb5d164a2a009e8a1f.zip
qemu-4c71dc37fb56bd41893c74cb5d164a2a009e8a1f.tar.gz
qemu-4c71dc37fb56bd41893c74cb5d164a2a009e8a1f.tar.bz2
tests/tcg: Do not require FE_TOWARDZERO
This is optional in ISO C, and not all cpus provide it. 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_convs.c2
-rw-r--r--tests/tcg/multiarch/float_madds.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/tcg/multiarch/float_convs.c b/tests/tcg/multiarch/float_convs.c
index 47e24b8..e9be75c 100644
--- a/tests/tcg/multiarch/float_convs.c
+++ b/tests/tcg/multiarch/float_convs.c
@@ -30,7 +30,9 @@ float_mapping round_flags[] = {
#ifdef FE_DOWNWARD
{ FE_DOWNWARD, "downwards" },
#endif
+#ifdef FE_TOWARDZERO
{ FE_TOWARDZERO, "to zero" }
+#endif
};
static void print_input(float input)
diff --git a/tests/tcg/multiarch/float_madds.c b/tests/tcg/multiarch/float_madds.c
index eceb4ae..e422608 100644
--- a/tests/tcg/multiarch/float_madds.c
+++ b/tests/tcg/multiarch/float_madds.c
@@ -29,7 +29,9 @@ float_mapping round_flags[] = {
#ifdef FE_DOWNWARD
{ FE_DOWNWARD, "downwards" },
#endif
+#ifdef FE_TOWARDZERO
{ FE_TOWARDZERO, "to zero" }
+#endif
};