public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/19181] New: [i386/x86_64] fesetenv (FE_DFL_ENV), fesetenv (FE_NOMASK_ENV) do not clear SSE exceptions
@ 2015-10-28 18:35 jsm28 at gcc dot gnu.org
  2015-10-28 18:51 ` [Bug math/19181] " cvs-commit at gcc dot gnu.org
  2015-10-28 18:52 ` jsm28 at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-10-28 18:35 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=19181

            Bug ID: 19181
           Summary: [i386/x86_64] fesetenv (FE_DFL_ENV), fesetenv
                    (FE_NOMASK_ENV) do not clear SSE exceptions
           Product: glibc
           Version: 2.22
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
          Assignee: unassigned at sourceware dot org
          Reporter: jsm28 at gcc dot gnu.org
  Target Milestone: ---
            Target: i?86-*-* x86_64-*-*

The i386 and x86_64 versions of fesetenv, when called with FE_DFL_ENV or
FE_NOMASK_ENV as argument, do not clear SSE exceptions raised in MXCSR.  These
arguments should, like other fenv_t values, represent the whole of the
floating-point state, so such exceptions should be cleared.  (Discovered while
working on bug 16068.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug math/19181] [i386/x86_64] fesetenv (FE_DFL_ENV), fesetenv (FE_NOMASK_ENV) do not clear SSE exceptions
  2015-10-28 18:35 [Bug math/19181] New: [i386/x86_64] fesetenv (FE_DFL_ENV), fesetenv (FE_NOMASK_ENV) do not clear SSE exceptions jsm28 at gcc dot gnu.org
@ 2015-10-28 18:51 ` cvs-commit at gcc dot gnu.org
  2015-10-28 18:52 ` jsm28 at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2015-10-28 18:51 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=19181

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  0b9af583a5c2d68085e88cece13952bf05dc4882 (commit)
      from  eae6c382bdca2e7ac582a69d56c9c228b678ee67 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0b9af583a5c2d68085e88cece13952bf05dc4882

commit 0b9af583a5c2d68085e88cece13952bf05dc4882
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Wed Oct 28 18:50:20 2015 +0000

    Fix i386/x86_64 fesetenv SSE exception clearing (bug 19181).

    The i386 and x86_64 versions of fesetenv, when called with FE_DFL_ENV
    or FE_NOMASK_ENV as argument, do not clear SSE exceptions raised in
    MXCSR.  These arguments should, like other fenv_t values, represent
    the whole of the floating-point state, so such exceptions should be
    cleared; this patch adds the required clearing.  (Discovered while
    working on bug 16068.)

    Tested for x86_64 and x86.

        [BZ #19181]
        * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
        SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
        * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
        * math/test-fenv-clear-main.c: New file.
        * math/test-fenv-clear.c: Likewise.
        * math/Makefile (tests): Add test-fenv-clear.
        * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
        * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
        test-fenv-clear-sse.
        [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                             |   12 ++++
 NEWS                                  |    2 +-
 math/Makefile                         |    2 +-
 math/test-fenv-clear-main.c           |   91 +++++++++++++++++++++++++++++++++
 math/test-fenv-clear.c                |    2 +
 sysdeps/i386/fpu/fesetenv.c           |    4 ++
 sysdeps/x86/fpu/Makefile              |    3 +-
 sysdeps/x86/fpu/test-fenv-clear-sse.c |   45 ++++++++++++++++
 sysdeps/x86_64/fpu/fesetenv.c         |    4 ++
 9 files changed, 162 insertions(+), 3 deletions(-)
 create mode 100644 math/test-fenv-clear-main.c
 create mode 100644 math/test-fenv-clear.c
 create mode 100644 sysdeps/x86/fpu/test-fenv-clear-sse.c

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug math/19181] [i386/x86_64] fesetenv (FE_DFL_ENV), fesetenv (FE_NOMASK_ENV) do not clear SSE exceptions
  2015-10-28 18:35 [Bug math/19181] New: [i386/x86_64] fesetenv (FE_DFL_ENV), fesetenv (FE_NOMASK_ENV) do not clear SSE exceptions jsm28 at gcc dot gnu.org
  2015-10-28 18:51 ` [Bug math/19181] " cvs-commit at gcc dot gnu.org
@ 2015-10-28 18:52 ` jsm28 at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-10-28 18:52 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=19181

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |2.23

--- Comment #2 from Joseph Myers <jsm28 at gcc dot gnu.org> ---
Fixed for 2.23.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

end of thread, other threads:[~2015-10-28 18:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-28 18:35 [Bug math/19181] New: [i386/x86_64] fesetenv (FE_DFL_ENV), fesetenv (FE_NOMASK_ENV) do not clear SSE exceptions jsm28 at gcc dot gnu.org
2015-10-28 18:51 ` [Bug math/19181] " cvs-commit at gcc dot gnu.org
2015-10-28 18:52 ` jsm28 at gcc dot gnu.org

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).