From: Peter Maydell <peter.maydell@linaro.org>
To: Richard Henderson <richard.henderson@linaro.org>
Cc: qemu-devel@nongnu.org
Subject: Re: [PATCH 02/11] softfloat: Inline pickNaNMulAdd
Date: Thu, 5 Dec 2024 13:30:23 +0000 [thread overview]
Message-ID: <CAFEAcA85h3uw1Z40LSKYAJ2FXqifLw2BzYD95krcGYU=PKJVQA@mail.gmail.com> (raw)
In-Reply-To: <20241203203949.483774-3-richard.henderson@linaro.org>
On Tue, 3 Dec 2024 at 20:39, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> Inline pickNaNMulAdd into its only caller. This makes
> one assert redundant with the immediately preceding IF.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> fpu/softfloat-parts.c.inc | 35 +++++++++++++++++++++-
> fpu/softfloat-specialize.c.inc | 54 ----------------------------------
> 2 files changed, 34 insertions(+), 55 deletions(-)
> -/*----------------------------------------------------------------------------
> -| Select which NaN to propagate for a three-input operation.
> -| For the moment we assume that no CPU needs the 'larger significand'
> -| information.
> -| Return values : 0 : a; 1 : b; 2 : c; 3 : default-NaN
> -*----------------------------------------------------------------------------*/
> -static int pickNaNMulAdd(FloatClass a_cls, FloatClass b_cls, FloatClass c_cls,
> - bool infzero, bool have_snan, float_status *status)
> -{
> - FloatClass cls[3] = { a_cls, b_cls, c_cls };
> - Float3NaNPropRule rule = status->float_3nan_prop_rule;
> - int which;
> -
> - /*
> - * We guarantee not to require the target to tell us how to
> - * pick a NaN if we're always returning the default NaN.
> - * But if we're not in default-NaN mode then the target must
> - * specify.
> - */
This comment has got lost in the refactoring. Since it's
documenting a guarantee we make to the target, I think
it's worth retaining.
thanks
-- PMM
next prev parent reply other threads:[~2024-12-05 13:34 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-03 20:39 [PATCH for-10.0 00/11] fpu: pickNaN follow ups Richard Henderson
2024-12-03 20:39 ` [PATCH 01/11] target/arm: Copy entire float_status in is_ebf Richard Henderson
2024-12-04 6:14 ` Philippe Mathieu-Daudé
2024-12-05 13:28 ` Peter Maydell
2024-12-03 20:39 ` [PATCH 02/11] softfloat: Inline pickNaNMulAdd Richard Henderson
2024-12-04 6:05 ` Philippe Mathieu-Daudé
2024-12-05 13:30 ` Peter Maydell [this message]
2024-12-03 20:39 ` [PATCH 03/11] softfloat: Use goto for default nan case in pick_nan_muladd Richard Henderson
2024-12-04 6:15 ` Philippe Mathieu-Daudé
2024-12-03 20:39 ` [PATCH 04/11] softfloat: Remove which from parts_pick_nan_muladd Richard Henderson
2024-12-04 6:18 ` Philippe Mathieu-Daudé
2024-12-03 20:39 ` [PATCH 05/11] softfloat: Pad array size in pick_nan_muladd Richard Henderson
2024-12-04 6:19 ` Philippe Mathieu-Daudé
2024-12-03 20:39 ` [PATCH 06/11] softfloat: Move propagateFloatx80NaN to softfloat.c Richard Henderson
2024-12-05 13:33 ` Peter Maydell
2024-12-03 20:39 ` [PATCH 07/11] softfloat: Use parts_pick_nan in propagateFloatx80NaN Richard Henderson
2024-12-10 17:10 ` Peter Maydell
2024-12-03 20:39 ` [PATCH 08/11] softfloat: Inline pickNaN Richard Henderson
2024-12-04 6:10 ` Philippe Mathieu-Daudé
2024-12-03 20:39 ` [PATCH 09/11] softfloat: Share code between parts_pick_nan cases Richard Henderson
2024-12-05 13:37 ` Peter Maydell
2024-12-03 20:39 ` [PATCH 10/11] softfloat: Sink frac_cmp in parts_pick_nan until needed Richard Henderson
2024-12-05 13:48 ` Peter Maydell
2024-12-05 17:51 ` Richard Henderson
2024-12-05 17:52 ` Richard Henderson
2024-12-03 20:39 ` [PATCH 11/11] softfloat: Replace WHICH with RET in parts_pick_nan Richard Henderson
2024-12-04 6:12 ` Philippe Mathieu-Daudé
2024-12-10 17:23 ` [PATCH for-10.0 00/11] fpu: pickNaN follow ups 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='CAFEAcA85h3uw1Z40LSKYAJ2FXqifLw2BzYD95krcGYU=PKJVQA@mail.gmail.com' \
--to=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 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).