summaryrefslogtreecommitdiffstats
path: root/gcc/real.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/real.c')
-rw-r--r--gcc/real.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/real.c b/gcc/real.c
index ed671db0e4d..d578ace0883 100644
--- a/gcc/real.c
+++ b/gcc/real.c
@@ -3248,7 +3248,9 @@ encode_ibm_extended (const struct real_format *fmt, long *buf,
if (u.class == rvc_normal)
{
do_add (&v, &normr, &u, 1);
- round_for_format (base_fmt, &v);
+ /* The low double won't need rounding, since we round to a 106 bit
+ mantissa before calling this function, and we've just
+ subtracted off the top 54 bits. (53+1 because u is rounded.) */
encode_ieee_double (base_fmt, &buf[2], &v);
}
else
OpenPOWER on IntegriCloud