From: Richard Henderson <richard.henderson@linaro.org>
To: qemu-devel@nongnu.org
Subject: Re: [PATCH] target/sparc: don't set FSR_NVA when comparing unordered floats
Date: Sun, 11 May 2025 13:43:49 -0700 [thread overview]
Message-ID: <692eed39-4682-47f9-8d4e-dc0a7e8e60e2@linaro.org> (raw)
In-Reply-To: <20250425093513.863289-1-chigot@adacore.com>
On 4/25/25 02:35, Clément Chigot wrote:
> FSR_NVA should be set when one of the operands is a signaling NaN or
> when using FCMPEx instructions. But those cases are already handled
> within check_ieee_exception or floatxx_compare functions.
> Otherwise, it should be left untouched.
>
> FTR, this was detected by inf-compare-[5678] tests within gcc
> testsuites.
>
> Signed-off-by: Clément Chigot <chigot@adacore.com>
> ---
> target/sparc/fop_helper.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/target/sparc/fop_helper.c b/target/sparc/fop_helper.c
> index c25097d07f..b57da7c9ea 100644
> --- a/target/sparc/fop_helper.c
> +++ b/target/sparc/fop_helper.c
> @@ -446,7 +446,6 @@ static uint32_t finish_fcmp(CPUSPARCState *env, FloatRelation r, uintptr_t ra)
> case float_relation_greater:
> return 2;
> case float_relation_unordered:
> - env->fsr |= FSR_NVA;
> return 3;
> }
> g_assert_not_reached();
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
next prev parent reply other threads:[~2025-05-11 20:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-25 9:35 [PATCH] target/sparc: don't set FSR_NVA when comparing unordered floats Clément Chigot
2025-05-11 11:56 ` Mark Cave-Ayland
2025-05-11 20:43 ` Richard Henderson [this message]
2025-05-27 19:22 ` Mark Cave-Ayland
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=692eed39-4682-47f9-8d4e-dc0a7e8e60e2@linaro.org \
--to=richard.henderson@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).