summaryrefslogtreecommitdiff
path: root/gcc/real.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-11-25 18:06:07 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-11-25 18:06:07 +0000
commitf8c195b7213477b72136bb46f4eceaaa9e5c5435 (patch)
treed72c15b3df06205fd04c15aab9ac5157d1e6a8ca /gcc/real.c
parentb41b6b6716ed890e233dcb40984a55b914d2b356 (diff)
downloadgcc-f8c195b7213477b72136bb46f4eceaaa9e5c5435.tar.gz
* emit-rtl.c (gen_lowpart_common): Remove earlier change.
* real.c (make_nan): Make SIGN arg actually specify the sign bit. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23874 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/real.c')
-rw-r--r--gcc/real.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/real.c b/gcc/real.c
index 7fac64d19a6..d40a0f374d0 100644
--- a/gcc/real.c
+++ b/gcc/real.c
@@ -6205,11 +6205,11 @@ make_nan (nan, sign, mode)
abort ();
}
if (REAL_WORDS_BIG_ENDIAN)
- *nan++ = (sign << 15) | *p++;
+ *nan++ = (sign << 15) | (*p++ & 0x7fff);
while (--n != 0)
*nan++ = *p++;
if (! REAL_WORDS_BIG_ENDIAN)
- *nan = (sign << 15) | *p;
+ *nan = (sign << 15) | (*p & 0x7fff);
}
/* This is the inverse of the function `etarsingle' invoked by