diff options
Diffstat (limited to 'gcc/real.c')
-rw-r--r-- | gcc/real.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -3481,6 +3481,11 @@ encode_ieee_extended_motorola (const struct real_format *fmt, long *buf, long intermed[3]; encode_ieee_extended (fmt, intermed, r); + if (r->cl == rvc_inf) + /* For infinity clear the explicit integer bit again, so that the + format matches the canonical infinity generated by the FPU. */ + intermed[1] = 0; + /* Motorola chips are assumed always to be big-endian. Also, the padding in a Motorola extended real goes between the exponent and the mantissa. At this point the mantissa is entirely within |