]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add op1_op2_relation for float operands.
authorAldy Hernandez <aldyh@redhat.com>
Thu, 13 Oct 2022 06:08:26 +0000 (08:08 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Thu, 13 Oct 2022 12:16:05 +0000 (14:16 +0200)
commit5364b425934436b9ba52bd95ed8a8a19ce7af207
treed3a5dda87a1a6ab4d63007f29604b7a85a2f6547
parent786e4c024f941671a233f5779d73a5d22f4e9588
Add op1_op2_relation for float operands.

op1_op2_relation can be called for relops (bool = a < b) as well as
regular binary operators (z = a + b).  This patch adds the overloaded
method for floating point results.

gcc/ChangeLog:

* range-op-float.cc (range_operator_float::op1_op2_relation): New.
(class foperator_equal): Add using.
(class foperator_not_equal): Same.
(class foperator_lt): Same.
(class foperator_le): Same.
(class foperator_gt): Same.
(class foperator_ge): Same.
* range-op.cc (range_op_handler::op1_op2_relation): New.
* range-op.h (range_operator_float::op1_op2_relation): New.
gcc/range-op-float.cc
gcc/range-op.cc
gcc/range-op.h