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.
This commit is contained in:
Aldy Hernandez 2022-10-11 17:23:33 +02:00
parent 658788f348
commit 1c0670c62f
2 changed files with 29 additions and 0 deletions

View file

@ -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

View file

@ -4829,6 +4829,9 @@ range_op_tests ()
range_op_bitwise_and_tests ();
range_op_cast_tests ();
range_relational_tests ();
extern void range_op_float_tests ();
range_op_float_tests ();
}
} // namespace selftest