mbox series

[0/7] Multiple floating-point environment fixes

Message ID 20231102195531.2692153-1-adhemerval.zanella@linaro.org
Headers show
Series Multiple floating-point environment fixes | expand

Message

Adhemerval Zanella Netto Nov. 2, 2023, 7:55 p.m. UTC
Bruno Haible has uncovered multiple issues with floating point
environment functions on multiple platforms.  He already added
gnulib modules to overrides some functions, so some of theses fixes
arealready being used on some projects.

There are still some issues where I am not confortable to fix or
install a patch without proper hardware testing (BZ# 31023 for hppa
and BZ# 30993 for alpha), and there also one that would require a
lot of working since it requires fixing the compiler (BZ# 30973
for sh4).

Adhemerval Zanella (3):
  powerpc: Do not raise exception traps for fesetexcept/fesetexceptflag
    (BZ 30988)
  i686: Do not raise exception traps on fesetexcept (BZ 30989)
  riscv: Fix feenvupdate with FE_DFL_ENV (BZ 31022)

Bruno Haible (4):
  x86: Do not raises floating-point exception traps on fesetexceptflag
    (BZ 30990)
  manual: Clarify undefined behavior of feenableexcept (BZ 31019)
  alpha: Fix fesetexceptflag (BZ 30998)
  hppa: Fix undefined behaviour in feclearexcept (BZ 30983)

 manual/arith.texi                        |   6 ++
 math/test-fenv.c                         | 132 +++++++++++++++++++++--
 math/test-fesetexcept-traps.c            |  37 +++++--
 math/test-fexcept-traps.c                |  33 ++++--
 sysdeps/alpha/fpu/fsetexcptflg.c         |   2 +-
 sysdeps/hppa/fpu/fclrexcpt.c             |   2 +-
 sysdeps/i386/fpu/fesetexcept.c           |  46 +++++++-
 sysdeps/i386/fpu/fsetexcptflg.c          |  63 +++++++----
 sysdeps/i386/fpu/math-tests-trap-force.h |  29 +++++
 sysdeps/powerpc/fpu/fesetexcept.c        |   5 +
 sysdeps/powerpc/fpu/fsetexcptflg.c       |   9 +-
 sysdeps/riscv/rvf/fenv_private.h         |   6 +-
 sysdeps/x86/fpu/test-fenv-sse-2.c        |  23 +---
 sysdeps/x86_64/fpu/fsetexcptflg.c        |  24 +++--
 14 files changed, 332 insertions(+), 85 deletions(-)
 create mode 100644 sysdeps/i386/fpu/math-tests-trap-force.h

Comments

Adhemerval Zanella Netto Nov. 3, 2023, 12:23 p.m. UTC | #1
On 02/11/23 16:55, Adhemerval Zanella wrote:
> Bruno Haible has uncovered multiple issues with floating point
> environment functions on multiple platforms.  He already added
> gnulib modules to overrides some functions, so some of theses fixes
> arealready being used on some projects.
> 
> There are still some issues where I am not confortable to fix or
> install a patch without proper hardware testing (BZ# 31023 for hppa
> and BZ# 30993 for alpha), and there also one that would require a
> lot of working since it requires fixing the compiler (BZ# 30973
> for sh4).

I will resend, there were a problem on my side where the thread
was truncated.