diff options
author | Jakub Jelinek <jakub@redhat.com> | 2008-09-02 20:46:29 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2008-09-02 20:46:29 +0200 |
commit | c83c7e7e47f2a1618ea5ab1e6fc78df66b22f285 (patch) | |
tree | e1b8841f5e2430ccf674dd0b115c45411c50bb8a /gcc/real.c | |
parent | 75c9cbe3557ee9c4971140719dfce0a8dd4d1d52 (diff) | |
download | gcc-c83c7e7e47f2a1618ea5ab1e6fc78df66b22f285.zip gcc-c83c7e7e47f2a1618ea5ab1e6fc78df66b22f285.tar.gz gcc-c83c7e7e47f2a1618ea5ab1e6fc78df66b22f285.tar.bz2 |
re PR testsuite/36332 (FAIL: gcc.dg/torture/type-generic-1.c execution test on powerpc-*)
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.
From-SVN: r139906
Diffstat (limited to 'gcc/real.c')
-rw-r--r-- | gcc/real.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } } |