[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 5/7] softfloat: return low bits of quotient from floatx80_mod
From: |
Richard Henderson |
Subject: |
Re: [PATCH 5/7] softfloat: return low bits of quotient from floatx80_modrem |
Date: |
Sat, 6 Jun 2020 12:15:14 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 |
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~
- [PATCH 0/7] softfloat, target/i386: fprem, fprem1 fixes, Joseph Myers, 2020/06/05
- [PATCH 1/7] softfloat: merge floatx80_mod and floatx80_rem, Joseph Myers, 2020/06/05
- [PATCH 2/7] softfloat: fix floatx80 remainder pseudo-denormal check for zero, Joseph Myers, 2020/06/05
- [PATCH 3/7] softfloat: do not return pseudo-denormal from floatx80 remainder, Joseph Myers, 2020/06/05
- [PATCH 4/7] softfloat: do not set denominator high bit for floatx80 remainder, Joseph Myers, 2020/06/05
- [PATCH 5/7] softfloat: return low bits of quotient from floatx80_modrem, Joseph Myers, 2020/06/05
- Re: [PATCH 5/7] softfloat: return low bits of quotient from floatx80_modrem,
Richard Henderson <=
- [PATCH 6/7] target/i386: reimplement fprem1 using floatx80 operations, Joseph Myers, 2020/06/05
- [PATCH 7/7] target/i386: reimplement fprem using floatx80 operations, Joseph Myers, 2020/06/05