pp_string (pp, buf);
}
+void
+vrange_printer::print_real_value (tree type, const REAL_VALUE_TYPE &r) const
+{
+ char s[100];
+ real_to_decimal_for_mode (s, &r, sizeof (s), 0, 1, TYPE_MODE (type));
+ pp_string (pp, s);
+ if (!DECIMAL_FLOAT_TYPE_P (type))
+ {
+ real_to_hexadecimal (s, &r, sizeof (s), 0, 1);
+ pp_printf (pp, " (%s)", s);
+ }
+}
+
// Print an frange.
void
bool has_endpoints = !r.known_isnan ();
if (has_endpoints)
{
- dump_generic_node (pp,
- build_real (type, r.lower_bound ()), 0, TDF_NONE, false);
+ print_real_value (type, r.lower_bound ());
pp_string (pp, ", ");
- dump_generic_node (pp,
- build_real (type, r.upper_bound ()), 0, TDF_NONE, false);
+ print_real_value (type, r.upper_bound ());
}
pp_character (pp, ']');
print_frange_nan (r);
void print_irange_bound (const wide_int &w, tree type) const;
void print_irange_bitmasks (const irange &) const;
void print_frange_nan (const frange &) const;
+ void print_real_value (tree type, const REAL_VALUE_TYPE &r) const;
pretty_printer *pp;
};