public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/95169] New: i386 comparison between nan and 0.0 triggers Invalid operation exception
@ 2020-05-17  0:23 samuel.thibault@ens-lyon.org
  2020-05-17  0:25 ` [Bug c/95169] " samuel.thibault@ens-lyon.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: samuel.thibault@ens-lyon.org @ 2020-05-17  0:23 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95169

            Bug ID: 95169
           Summary: i386 comparison between nan and 0.0 triggers Invalid
                    operation exception
           Product: gcc
           Version: 10.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: samuel.thibault@ens-lyon.org
  Target Milestone: ---

Created attachment 48549
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48549&action=edit
testcase

Hello,

On building the attached testcase with 

gcc-10 -m32 test.c -o test -march=i386 -mtune=generic -lm

its execution prints "0 1", i.e. an Invalid operation exception is raised by
the mere comparison of y (that contains NaN) against 0.0.

This was tested with Debian's gcc-10 10.1.0-1.
This does not happen with previous versions of gcc. This happens with half of
the  values of -mtune (I'll attach the details) ; this also happens with
-march=i486, i586, pentium ; this does not happen with -march=i686 or
pentiumpro etc. (whatever the value of -mtune).

Samuel

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

end of thread, other threads:[~2020-05-21 18:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-17  0:23 [Bug c/95169] New: i386 comparison between nan and 0.0 triggers Invalid operation exception samuel.thibault@ens-lyon.org
2020-05-17  0:25 ` [Bug c/95169] " samuel.thibault@ens-lyon.org
2020-05-17  0:26 ` samuel.thibault@ens-lyon.org
2020-05-17  1:06 ` [Bug target/95169] " samuel.thibault@ens-lyon.org
2020-05-17  1:59 ` pinskia at gcc dot gnu.org
2020-05-17 18:32 ` ubizjak at gmail dot com
2020-05-17 18:58 ` ubizjak at gmail dot com
2020-05-18 15:53 ` [Bug target/95169] [10/11 Regression] " cvs-commit at gcc dot gnu.org
2020-05-21 17:37 ` cvs-commit at gcc dot gnu.org
2020-05-21 18:43 ` ubizjak at gmail dot com

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