public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/7] Multiple floating-point environment fixes
@ 2023-11-03 12:24 Adhemerval Zanella
  2023-11-03 12:24 ` [PATCH 1/7] powerpc: Do not raise exception traps for fesetexcept/fesetexceptflag (BZ 30988) Adhemerval Zanella
                   ` (7 more replies)
  0 siblings, 8 replies; 24+ messages in thread
From: Adhemerval Zanella @ 2023-11-03 12:24 UTC (permalink / raw)
  To: libc-alpha, Bruno Haible

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

-- 
2.34.1


^ permalink raw reply	[flat|nested] 24+ messages in thread
* [PATCH 0/7] Multiple floating-point environment fixes
@ 2023-11-02 19:55 Adhemerval Zanella
  2023-11-03 12:23 ` Adhemerval Zanella Netto
  0 siblings, 1 reply; 24+ messages in thread
From: Adhemerval Zanella @ 2023-11-02 19:55 UTC (permalink / raw)
  To: libc-alpha, Bruno Haible

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

-- 
2.34.1


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2024-01-09 18:16 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-03 12:24 [PATCH 0/7] Multiple floating-point environment fixes Adhemerval Zanella
2023-11-03 12:24 ` [PATCH 1/7] powerpc: Do not raise exception traps for fesetexcept/fesetexceptflag (BZ 30988) Adhemerval Zanella
2023-11-03 12:24 ` [PATCH 2/7] i686: Do not raise exception traps on fesetexcept (BZ 30989) Adhemerval Zanella
2023-11-06  0:15   ` Bruno Haible
2023-11-06 11:24     ` Adhemerval Zanella Netto
2023-11-03 12:24 ` [PATCH 3/7] x86: Do not raises floating-point exception traps on fesetexceptflag (BZ 30990) Adhemerval Zanella
2023-11-06  0:17   ` Bruno Haible
2023-11-06 11:24     ` Adhemerval Zanella Netto
2023-11-03 12:24 ` [PATCH 4/7] manual: Clarify undefined behavior of feenableexcept (BZ 31019) Adhemerval Zanella
2023-11-03 16:20   ` Joseph Myers
2023-11-06  0:17     ` Bruno Haible
2023-11-06 11:25       ` Adhemerval Zanella Netto
2023-11-03 12:24 ` [PATCH 5/7] riscv: Fix feenvupdate with FE_DFL_ENV (BZ 31022) Adhemerval Zanella
2023-11-06  0:21   ` Bruno Haible
2023-11-06 11:28     ` Adhemerval Zanella Netto
2023-11-06  0:24   ` Bruno Haible
2023-11-06 11:32     ` Adhemerval Zanella Netto
2024-01-09 13:44   ` Szabolcs Nagy
2024-01-09 18:16     ` Adhemerval Zanella Netto
2023-11-03 12:24 ` [PATCH 6/7] alpha: Fix fesetexceptflag (BZ 30998) Adhemerval Zanella
2023-11-03 12:24 ` [PATCH 7/7] hppa: Fix undefined behaviour in feclearexcept (BZ 30983) Adhemerval Zanella
2023-11-06  0:25 ` [PATCH 0/7] Multiple floating-point environment fixes Bruno Haible
  -- strict thread matches above, loose matches on Subject: below --
2023-11-02 19:55 Adhemerval Zanella
2023-11-03 12:23 ` Adhemerval Zanella Netto

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 read-only IMAP folder(s) and NNTP newsgroup(s).