mbox series

[v2,0/3] Fix fesetexcept/fesetexceptflag on powerpc and x86

Message ID 20231024113716.3911015-1-adhemerval.zanella@linaro.org
Headers show
Series Fix fesetexcept/fesetexceptflag on powerpc and x86 | expand

Message

Adhemerval Zanella Netto Oct. 24, 2023, 11:37 a.m. UTC
Bruno has found fesetexcept/fesetexceptflag wrongly raise floating-point
exception flags on x86 and powerpc.

Adhemerval Zanella (2):
  powerpc: Do not raise exception traps for fesetexcept/fesetexceptflag
    (BZ 30988)
  i686: Do not raise exception traps on fesetexcept (BZ 30989)

Bruno Haible (1):
  x86: Do not raises floating-point exception traps on fesetexceptflag
    (BZ 30990)

 math/test-fesetexcept-traps.c            | 22 ++++++---
 math/test-fexcept-traps.c                | 22 ++++++---
 sysdeps/i386/fpu/fesetexcept.c           | 41 +++++++++++++++--
 sysdeps/i386/fpu/fsetexcptflg.c          | 58 +++++++++++++++---------
 sysdeps/i386/fpu/math-tests-trap-force.h | 29 ++++++++++++
 sysdeps/powerpc/fpu/fesetexcept.c        |  5 ++
 sysdeps/powerpc/fpu/fsetexcptflg.c       |  9 +++-
 sysdeps/x86_64/fpu/fsetexcptflg.c        | 24 ++++++----
 8 files changed, 160 insertions(+), 50 deletions(-)
 create mode 100644 sysdeps/i386/fpu/math-tests-trap-force.h