From: Peter Maydell <peter.maydell@linaro.org>
To: qemu-devel@nongnu.org
Subject: [PULL 02/31] tests/fp: Explicitly set 2-NaN propagation rule
Date: Tue, 5 Nov 2024 11:19:06 +0000 [thread overview]
Message-ID: <20241105111935.2747034-3-peter.maydell@linaro.org> (raw)
In-Reply-To: <20241105111935.2747034-1-peter.maydell@linaro.org>
Explicitly set a 2-NaN propagation rule in the softfloat tests. In
meson.build we put -DTARGET_ARM in fpcflags, and so we should select
here the Arm propagation rule of float_2nan_prop_s_ab.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20241025141254.2141506-3-peter.maydell@linaro.org
---
tests/fp/fp-bench.c | 2 ++
tests/fp/fp-test-log2.c | 1 +
tests/fp/fp-test.c | 2 ++
3 files changed, 5 insertions(+)
diff --git a/tests/fp/fp-bench.c b/tests/fp/fp-bench.c
index 8ce0ca1545d..75c07d5d1f1 100644
--- a/tests/fp/fp-bench.c
+++ b/tests/fp/fp-bench.c
@@ -488,6 +488,8 @@ static void run_bench(void)
{
bench_func_t f;
+ set_float_2nan_prop_rule(float_2nan_prop_s_ab, &soft_status);
+
f = bench_funcs[operation][precision];
g_assert(f);
f();
diff --git a/tests/fp/fp-test-log2.c b/tests/fp/fp-test-log2.c
index 4eae93eb7cc..de702c4c80d 100644
--- a/tests/fp/fp-test-log2.c
+++ b/tests/fp/fp-test-log2.c
@@ -70,6 +70,7 @@ int main(int ac, char **av)
float_status qsf = {0};
int i;
+ set_float_2nan_prop_rule(float_2nan_prop_s_ab, &qsf);
set_float_rounding_mode(float_round_nearest_even, &qsf);
test.d = 0.0;
diff --git a/tests/fp/fp-test.c b/tests/fp/fp-test.c
index 36b5712cda0..5f6f25c8821 100644
--- a/tests/fp/fp-test.c
+++ b/tests/fp/fp-test.c
@@ -935,6 +935,8 @@ void run_test(void)
{
unsigned int i;
+ set_float_2nan_prop_rule(float_2nan_prop_s_ab, &qsf);
+
genCases_setLevel(test_level);
verCases_maxErrorCount = n_max_errors;
--
2.34.1
next prev parent reply other threads:[~2024-11-05 11:21 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-05 11:19 [PULL 00/31] target-arm queue Peter Maydell
2024-11-05 11:19 ` [PULL 01/31] softfloat: Allow 2-operand NaN propagation rule to be set at runtime Peter Maydell
2024-11-05 11:19 ` Peter Maydell [this message]
2024-11-05 11:19 ` [PULL 03/31] target/arm: Explicitly set 2-NaN propagation rule Peter Maydell
2024-11-05 11:19 ` [PULL 04/31] target/mips: " Peter Maydell
2024-11-05 11:19 ` [PULL 05/31] target/loongarch: " Peter Maydell
2024-11-05 11:19 ` [PULL 06/31] target/hppa: " Peter Maydell
2024-11-05 11:19 ` [PULL 07/31] target/s390x: " Peter Maydell
2024-11-05 11:19 ` [PULL 08/31] target/ppc: " Peter Maydell
2024-11-05 11:19 ` [PULL 09/31] target/m68k: " Peter Maydell
2024-11-05 11:19 ` [PULL 10/31] target/m68k: Initialize float_status fields in gdb set/get functions Peter Maydell
2024-11-05 11:19 ` [PULL 11/31] target/sparc: Move cpu_put_fsr(env, 0) call to reset Peter Maydell
2024-11-05 11:19 ` [PULL 12/31] target/sparc: Explicitly set 2-NaN propagation rule Peter Maydell
2024-11-05 11:19 ` [PULL 13/31] target/xtensa: Factor out calls to set_use_first_nan() Peter Maydell
2024-11-05 11:19 ` [PULL 14/31] target/xtensa: Explicitly set 2-NaN propagation rule Peter Maydell
2024-11-05 11:19 ` [PULL 15/31] target/i386: Set 2-NaN propagation rule explicitly Peter Maydell
2024-11-05 11:19 ` [PULL 16/31] target/alpha: Explicitly set 2-NaN propagation rule Peter Maydell
2024-11-05 11:19 ` [PULL 17/31] target/microblaze: Move setting of float rounding mode to reset Peter Maydell
2024-11-05 11:19 ` [PULL 18/31] target/microblaze: Explicitly set 2-NaN propagation rule Peter Maydell
2024-11-05 11:19 ` [PULL 19/31] target/openrisc: " Peter Maydell
2024-11-05 11:19 ` [PULL 20/31] target/rx: " Peter Maydell
2024-11-05 11:19 ` [PULL 21/31] softfloat: Remove fallback rule from pickNaN() Peter Maydell
2024-11-05 11:19 ` [PULL 22/31] Revert "target/arm: Fix usage of MMU indexes when EL3 is AArch32" Peter Maydell
2024-11-05 11:19 ` [PULL 23/31] target/arm: Add new MMU indexes for AArch32 Secure PL1&0 Peter Maydell
2024-11-05 11:19 ` [PULL 24/31] target/arm: Fix SVE SDOT/UDOT/USDOT (4-way, indexed) Peter Maydell
2024-11-05 11:19 ` [PULL 25/31] disas: Fix build against Capstone v6 (again) Peter Maydell
2024-11-05 11:19 ` [PULL 26/31] hw/rtc/ds1338: Trace send and receive operations Peter Maydell
2024-11-05 11:19 ` [PULL 27/31] hw/timer/imx_gpt: Convert DPRINTF to trace events Peter Maydell
2024-11-05 11:19 ` [PULL 28/31] hw/watchdog/wdt_imx2: Remove redundant assignment Peter Maydell
2024-11-05 11:19 ` [PULL 29/31] hw/sensor/tmp105: Convert printf() to trace event, add tracing for read/write access Peter Maydell
2024-11-05 11:19 ` [PULL 30/31] hw/net/npcm_gmac: Change error log to trace event Peter Maydell
2024-11-05 11:19 ` [PULL 31/31] target/arm: Enable FEAT_CMOW for -cpu max Peter Maydell
2024-11-06 11:15 ` [PULL 00/31] target-arm queue Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241105111935.2747034-3-peter.maydell@linaro.org \
--to=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).