From: Andreas Schwab Date: Wed, 2 Apr 2003 09:13:33 +0000 (+0000) Subject: * real.c (decode_ieee_single): Fix decoding of SNaN bit. X-Git-Tag: releases/gcc-3.4.0~7521 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f875310e629cffdc8dcd96df933c180755fa292a;p=thirdparty%2Fgcc.git * real.c (decode_ieee_single): Fix decoding of SNaN bit. From-SVN: r65161 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a25207869af7..3ec6e47dcb83 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2003-04-02 Andreas Schwab + + * real.c (decode_ieee_single): Fix decoding of SNaN bit. + 2003-04-01 Richard Henderson * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION diff --git a/gcc/real.c b/gcc/real.c index 74f430c29ae4..c79dd288b62d 100644 --- a/gcc/real.c +++ b/gcc/real.c @@ -2705,7 +2705,8 @@ decode_ieee_single (fmt, r, buf) { r->class = rvc_nan; r->sign = sign; - r->signalling = ((image >> 22) & 1) ^ fmt->qnan_msb_set; + r->signalling = (((image >> (HOST_BITS_PER_LONG - 2)) & 1) + ^ fmt->qnan_msb_set); r->sig[SIGSZ-1] = image; } else