From: Richard Henderson <richard.henderson@linaro.org>
To: Joseph Myers <joseph@codesourcery.com>,
qemu-devel@nongnu.org, aurelien@aurel32.net,
peter.maydell@linaro.org, alex.bennee@linaro.org,
laurent@vivier.eu, pbonzini@redhat.com, rth@twiddle.net,
ehabkost@redhat.com
Subject: Re: [PATCH 5/7] softfloat: return low bits of quotient from floatx80_modrem
Date: Sat, 6 Jun 2020 12:15:14 -0700 [thread overview]
Message-ID: <bce722e6-0db2-43e4-f495-fbf5d1e2ce53@linaro.org> (raw)
In-Reply-To: <alpine.DEB.2.21.2006051901120.13777@digraph.polyomino.org.uk>
On 6/5/20 12:01 PM, Joseph Myers wrote:
> Both x87 and m68k need the low parts of the quotient for their
> remainder operations. Arrange for floatx80_modrem to track those bits
> and return them via a pointer.
>
> The architectures using float32_rem and float64_rem do not appear to
> need this information, so the *_rem interface is left unchanged and
> the information returned only from floatx80_modrem. The logic used to
> determine the low 7 bits of the quotient for m68k
> (target/m68k/fpu_helper.c:make_quotient) appears completely bogus (it
> looks at the result of converting the remainder to integer, the
> quotient having been discarded by that point); this patch does not
> change that, but the m68k maintainers may wish to do so.
>
> Signed-off-by: Joseph Myers <joseph@codesourcery.com>
> ---
> fpu/softfloat.c | 23 ++++++++++++++++++-----
> include/fpu/softfloat.h | 3 ++-
> 2 files changed, 20 insertions(+), 6 deletions(-)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
next prev parent reply other threads:[~2020-06-06 19:16 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-05 18:58 [PATCH 0/7] softfloat, target/i386: fprem, fprem1 fixes Joseph Myers
2020-06-05 18:59 ` [PATCH 1/7] softfloat: merge floatx80_mod and floatx80_rem Joseph Myers
2020-06-06 19:06 ` Richard Henderson
2020-06-05 19:00 ` [PATCH 2/7] softfloat: fix floatx80 remainder pseudo-denormal check for zero Joseph Myers
2020-06-06 19:06 ` Richard Henderson
2020-06-05 19:00 ` [PATCH 3/7] softfloat: do not return pseudo-denormal from floatx80 remainder Joseph Myers
2020-06-06 19:08 ` Richard Henderson
2020-06-05 19:01 ` [PATCH 4/7] softfloat: do not set denominator high bit for " Joseph Myers
2020-06-06 19:08 ` Richard Henderson
2020-06-05 19:01 ` [PATCH 5/7] softfloat: return low bits of quotient from floatx80_modrem Joseph Myers
2020-06-06 19:15 ` Richard Henderson [this message]
2020-06-05 19:02 ` [PATCH 6/7] target/i386: reimplement fprem1 using floatx80 operations Joseph Myers
2020-06-06 19:16 ` Richard Henderson
2020-06-08 16:46 ` Alex Bennée
2020-06-08 16:51 ` Joseph Myers
2020-06-08 21:03 ` Alex Bennée
2020-06-05 19:02 ` [PATCH 7/7] target/i386: reimplement fprem " Joseph Myers
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=bce722e6-0db2-43e4-f495-fbf5d1e2ce53@linaro.org \
--to=richard.henderson@linaro.org \
--cc=alex.bennee@linaro.org \
--cc=aurelien@aurel32.net \
--cc=ehabkost@redhat.com \
--cc=joseph@codesourcery.com \
--cc=laurent@vivier.eu \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
/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).