diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2023-10-01 16:54:27 -0400 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2023-10-26 12:52:14 -0400 |
commit | 24e97ac46c24060a1a5a2ce8ebc842239006c405 (patch) | |
tree | 00c8c780abb2c0d26eb78aac7795a216f6932bad /gcc/expr.cc | |
parent | 4d49685d671e4e604b2b873ada65aaac89348794 (diff) | |
download | gcc-24e97ac46c24060a1a5a2ce8ebc842239006c405.zip gcc-24e97ac46c24060a1a5a2ce8ebc842239006c405.tar.gz gcc-24e97ac46c24060a1a5a2ce8ebc842239006c405.tar.bz2 |
[range-ops] Add frange& argument to rv_fold.
The floating point version of rv_fold returns its result in 3 pieces:
the lower bound, the upper bound, and a maybe_nan bit. It is cleaner
to return everything in an frange, thus bringing the floating point
version of rv_fold in line with the integer version.
This first patch adds an frange argument, while keeping the current
functionality, and asserting that we get the same results. In a
follow-up patch I will nuke the now useless 3 arguments. Splitting
this into two patches makes it easier to bisect any problems if any
should arise.
gcc/ChangeLog:
* range-op-float.cc (range_operator::fold_range): Pass frange
argument to rv_fold.
(range_operator::rv_fold): Add frange argument.
(operator_plus::rv_fold): Same.
(operator_minus::rv_fold): Same.
(operator_mult::rv_fold): Same.
(operator_div::rv_fold): Same.
* range-op-mixed.h: Add frange argument to rv_fold methods.
* range-op.h: Same.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions