From: Zhao Liu <zhao1.liu@intel.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org,
Richard Henderson <richard.henderson@linaro.org>,
Paolo Bonzini <pbonzini@redhat.com>,
Eduardo Habkost <eduardo@habkost.net>
Subject: Re: [PATCH 1/4] target/i386: Detect flush-to-zero after rounding
Date: Wed, 7 May 2025 21:10:28 +0800 [thread overview]
Message-ID: <aBtbxJq8KFpn7KiK@intel.com> (raw)
In-Reply-To: <20250213142613.151308-2-peter.maydell@linaro.org>
On Thu, Feb 13, 2025 at 02:26:10PM +0000, Peter Maydell wrote:
> Date: Thu, 13 Feb 2025 14:26:10 +0000
> From: Peter Maydell <peter.maydell@linaro.org>
> Subject: [PATCH 1/4] target/i386: Detect flush-to-zero after rounding
> X-Mailer: git-send-email 2.43.0
>
> The Intel SDM section 10.2.3.3 on the MXCSR.FTZ bit says that we
> flush outputs to zero when we detect underflow, which is after
> rounding. Set the detect_ftz flag accordingly.
>
> This allows us to enable the test in fma.c which checks this
> behaviour.
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> target/i386/tcg/fpu_helper.c | 8 ++++----
> tests/tcg/x86_64/fma.c | 5 -----
> 2 files changed, 4 insertions(+), 9 deletions(-)
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
next prev parent reply other threads:[~2025-05-07 12:49 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-13 14:26 [PATCH 0/4] target/i386: Emulate ftz and denormal flag bits correctly Peter Maydell
2025-02-13 14:26 ` [PATCH 1/4] target/i386: Detect flush-to-zero after rounding Peter Maydell
2025-05-07 13:10 ` Zhao Liu [this message]
2025-02-13 14:26 ` [PATCH 2/4] target/i386: Use correct type for get_float_exception_flags() values Peter Maydell
2025-02-13 15:18 ` Philippe Mathieu-Daudé
2025-05-07 13:12 ` Zhao Liu
2025-02-13 14:26 ` [PATCH 3/4] target/i386: Wire up MXCSR.DE and FPUS.DE correctly Peter Maydell
2025-05-08 3:48 ` Zhao Liu
2025-02-13 14:26 ` [PATCH 4/4] tests/tcg/x86_64/fma: add test for exact-denormal output Peter Maydell
2025-05-08 3:48 ` Zhao Liu
2025-02-24 14:47 ` [PATCH 0/4] target/i386: Emulate ftz and denormal flag bits correctly Peter Maydell
2025-03-07 10:38 ` Peter Maydell
2025-03-12 13:22 ` Peter Maydell
2025-04-29 12:30 ` 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=aBtbxJq8KFpn7KiK@intel.com \
--to=zhao1.liu@intel.com \
--cc=eduardo@habkost.net \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.