Fix PR97439
authorAndreas Krebbel <krebbel@linux.ibm.com>
Thu, 22 Oct 2020 10:24:22 +0000 (12:24 +0200)
committerAndreas Krebbel <krebbel@linux.ibm.com>
Thu, 22 Oct 2020 10:38:01 +0000 (12:38 +0200)
commite3f25eac67aee77af0b2038cd4d6cbd36d7f1030
tree6678a5d9c84a8a375b0f52f7e6d64f8288bfee42
parentf7decfaebbcb8522fcb39b03a391a5c2cb64f460
Fix PR97439

decimal_real_maxval misses to set the sign flag in the REAL_VALUE_TYPE.

gcc/ChangeLog:

PR rtl-optimization/97439
* dfp.c (decimal_real_maxval): Set the sign flag in the
generated number.

gcc/testsuite/ChangeLog:

* gcc.dg/dfp/pr97439.c: New test.
gcc/dfp.c
gcc/testsuite/gcc.dg/dfp/pr97439.c [new file with mode: 0644]