[Bug middle-end/34627] Incorrect branching with -Ox on hppa
rguenther at suse dot de
gcc-bugzilla@gcc.gnu.org
Mon Feb 4 09:54:00 GMT 2008
------- Comment #18 from rguenther at suse dot de 2008-02-04 09:53 -------
Subject: Re: Incorrect branching with -Ox on hppa
On Mon, 4 Feb 2008, ebotcazou at gcc dot gnu dot org wrote:
>
>
> ------- Comment #16 from ebotcazou at gcc dot gnu dot org 2008-02-04 08:12 -------
> > Index: combine.c
> > ===================================================================
> > --- combine.c (revision 132077)
> > +++ combine.c (working copy)
> > @@ -5393,9 +5393,10 @@
> > /* Look for cases where we have (abs x) or (neg (abs X)). */
> >
> > if (GET_MODE_CLASS (mode) == MODE_INT
> > + && comparison_p
> > + && XEXP (cond, 1) == CONST0_RTX (mode)
> > && GET_CODE (false_rtx) == NEG
> > && rtx_equal_p (true_rtx, XEXP (false_rtx, 0))
> > - && comparison_p
> > && rtx_equal_p (true_rtx, XEXP (cond, 0))
> > && ! side_effects_p (true_rtx))
> > switch (true_code)
>
> This patch is OK for all branches in my opinion but run it by a RM because
> the PR is not formally marked as a regression.
The patch is fine for 4.3.
Richard.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34627
More information about the Gcc-bugs
mailing list