]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix nan updating in range-ops.
authorAndrew MacLeod <amacleod@redhat.com>
Fri, 14 Oct 2022 13:29:23 +0000 (09:29 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Mon, 17 Oct 2022 13:13:55 +0000 (09:13 -0400)
commit04874fedae8074b252abbd70fea68bf3dd0a605b
tree6563185f47c4c65c0054693f051119ba399149b5
parentfca529517484bf19098ca9efa77e95534086abdc
Fix nan updating in range-ops.

Calling clean_nan on an undefined type traps, set_varying first. Other
tweaks for correctness.

* range-op-float.cc (foperator_not_equal::op1_range): Check for
VREL_EQ after singleton.
(foperator_unordered::op1_range): Set VARYING before calling
clear_nan().
(foperator_ordered::op1_range): Set rather than clear NAN if both
operands are the same.
gcc/range-op-float.cc