This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/14303] New: [tree-ssa] gcc.c-torture/execute/20020720-1.c is not fully folded


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]