[Bug tree-optimization/31625] New: decimal float comparison after conversion no longer folded
janis at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Apr 18 16:30:00 GMT 2007
Test gcc.dg/dfp/convert-dfp-fold.c started failing on powerpc-linux with this
patch:
http://gcc.gnu.org/viewcvs?view=rev&rev=123719
r123719 | dnovillo | 2007-04-11 16:14:06 +0000 (Wed, 11 Apr 2007)
The test, which is compiled with -O, converts between decimal and binary
floating types, compares the results against constants, and calls link_error
for miscompares. All of the values can be represented in both relevant data
types and the original value is known, so the comparisons should always be
folded.
Since the patch above was added, a comparison for a _Decimal128 converted from
double is not folded, and there are calls to __dpd_extenddftd, __dpd_netd2, and
link_error. Oddly enough, removing almost any other comparison from the test
causes the test to pass, so I wasn't able to come up with a smaller testcase.
--
Summary: decimal float comparison after conversion no longer
folded
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: janis at gcc dot gnu dot org
GCC target triplet: powerpc-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31625
More information about the Gcc-bugs
mailing list