diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2022-10-11 17:23:33 +0200 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2022-10-12 08:49:00 +0200 |
commit | 1c0670c62fc7c7b610876e61bf971ea1db19680e (patch) | |
tree | d8b094e6d7c4290a3794aa2c317a5b415f168069 /gcc/range-op-float.cc | |
parent | 658788f3480e95f1dda0a143b60be89099e5d3c7 (diff) | |
download | gcc-1c0670c62fc7c7b610876e61bf971ea1db19680e.zip gcc-1c0670c62fc7c7b610876e61bf971ea1db19680e.tar.gz gcc-1c0670c62fc7c7b610876e61bf971ea1db19680e.tar.bz2 |
Add stubs for floating point range-op tests.
gcc/ChangeLog:
* range-op-float.cc (frange_float): New.
(range_op_float_tests): New.
* range-op.cc (range_op_tests): Call range_op_float_tests.
Diffstat (limited to 'gcc/range-op-float.cc')
-rw-r--r-- | gcc/range-op-float.cc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gcc/range-op-float.cc b/gcc/range-op-float.cc index 71cdd11..22b7418 100644 --- a/gcc/range-op-float.cc +++ b/gcc/range-op-float.cc @@ -1612,3 +1612,29 @@ floating_op_table::set (enum tree_code code, range_operator_float &op) gcc_checking_assert (m_range_tree[code] == NULL); m_range_tree[code] = &op; } + +#if CHECKING_P +#include "selftest.h" + +namespace selftest +{ + +// Build an frange from string endpoints. + +inline frange +frange_float (const char *lb, const char *ub, tree type = float_type_node) +{ + REAL_VALUE_TYPE min, max; + gcc_assert (real_from_string (&min, lb) == 0); + gcc_assert (real_from_string (&max, ub) == 0); + return frange (type, min, max); +} + +void +range_op_float_tests () +{ +} + +} // namespace selftest + +#endif // CHECKING_P |