This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/14303] New: [tree-ssa] gcc.c-torture/execute/20020720-1.c is not fully folded
- From: "kazu at cs dot umass dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Feb 2004 01:43:02 -0000
- Subject: [Bug optimization/14303] New: [tree-ssa] gcc.c-torture/execute/20020720-1.c is not fully folded
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
tree-ssa comes as close as:
foo (x)
{
double q;
double p;
<bb 0>:
if (ABS_EXPR <x> < 0.0) goto <L0>; else goto <L1>;
<L0>:;
link_error ();
<L1>:;
return;
}
But the comparison "<" is not folded.
On machines without hardware floating point support, like H8,
the testcase would fail because the "<" is not folded in rtl.
("<" is handled by a libcall.)
This kind of thing should be optimized in tree level.
--
Summary: [tree-ssa] gcc.c-torture/execute/20020720-1.c is not
fully folded
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kazu at cs dot umass dot edu
CC: gcc-bugs at gcc dot gnu dot org,roger at eyesopen dot
com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14303