]> git.ipfire.org Git - thirdparty/gcc.git/commit
[PR/middle-end 106819] NANs can never be a singleton
authorAldy Hernandez <aldyh@redhat.com>
Sat, 3 Sep 2022 13:41:06 +0000 (15:41 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Sat, 3 Sep 2022 15:37:29 +0000 (17:37 +0200)
commitdae8b9e2bbb6017bf90d68c7b720c500125c8295
tree7f82ff761e84280258ffc14750b36f84cba718f0
parent08de065293f8b08158e1089fbacce9dbaba95077
[PR/middle-end 106819] NANs can never be a singleton

Possible NANs can never be a singleton, so they will never be
propagated.  This was the intent, and then the signed zero code crept
in, and was mistakenly checked before the NAN.

PR/middle-end 106819

gcc/ChangeLog:

* value-range.cc (frange::singleton_p): Move NAN check to the top.

gcc/testsuite/ChangeLog:

* gcc.dg/tree-ssa/pr106819.c: New test.
gcc/testsuite/gcc.dg/tree-ssa/pr106819.c [new file with mode: 0644]
gcc/value-range.cc