diff options
author | Richard Henderson | 2020-08-25 22:11:43 +0200 |
---|---|---|
committer | Richard Henderson | 2020-09-01 16:41:38 +0200 |
commit | 4c71dc37fb56bd41893c74cb5d164a2a009e8a1f (patch) | |
tree | 8778b2d409797813e0fcc29bffa95c1ab182b388 /tests/tcg | |
parent | tests/tcg: Add microblaze to arches filter (diff) | |
download | qemu-4c71dc37fb56bd41893c74cb5d164a2a009e8a1f.tar.gz qemu-4c71dc37fb56bd41893c74cb5d164a2a009e8a1f.tar.xz qemu-4c71dc37fb56bd41893c74cb5d164a2a009e8a1f.zip |
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>
Diffstat (limited to 'tests/tcg')
-rw-r--r-- | tests/tcg/multiarch/float_convs.c | 2 | ||||
-rw-r--r-- | tests/tcg/multiarch/float_madds.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/tcg/multiarch/float_convs.c b/tests/tcg/multiarch/float_convs.c index 47e24b8b16..e9be75c2d5 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 eceb4ae38b..e422608ccd 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 }; |