]> gcc.gnu.org Git - gcc.git/commit
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:44:07 +0000 (12:44 +0200)
commit2819cdd8ff8e15ed5efb4095143cf531cf3e50f9
tree1ebc1a893095b0565541282ee655dca6ea676663
parent5c5e23cd5cadc92033aeafd5a1c64011ab0302ce
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.

(cherry picked from commit e3f25eac67aee77af0b2038cd4d6cbd36d7f1030)
gcc/dfp.c
gcc/testsuite/gcc.dg/dfp/pr97439.c [new file with mode: 0644]
This page took 0.065478 seconds and 6 git commands to generate.