diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-09-02 18:46:29 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-09-02 18:46:29 +0000 |
commit | 752ec9c0de481981dab92448ae06d8a678627fe2 (patch) | |
tree | e1b8841f5e2430ccf674dd0b115c45411c50bb8a /gcc/real.c | |
parent | c3aa71d49773329d5af1212a7738c1ebea8d8787 (diff) | |
download | gcc-752ec9c0de481981dab92448ae06d8a678627fe2.tar.gz |
PR target/36332
* real.c (real_maxval): Clear a lower bit to make real_maxval
match get_max_float for IBM long double format.
* gcc.c-torture/execute/ieee/pr36332.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139906 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/real.c')
-rw-r--r-- | gcc/real.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/real.c b/gcc/real.c index 886f8b4ae2c..dc6d7483e99 100644 --- a/gcc/real.c +++ b/gcc/real.c @@ -2417,7 +2417,7 @@ real_maxval (REAL_VALUE_TYPE *r, int sign, enum machine_mode mode) required to be the value of the long double rounded to the nearest double. Rounding means we need a slightly smaller value for LDBL_MAX. */ - clear_significand_bit (r, SIGNIFICAND_BITS - fmt->pnan); + clear_significand_bit (r, SIGNIFICAND_BITS - fmt->pnan - 1); } } |