[PATCH] PR 24418

Richard Henderson rth@redhat.com
Wed Oct 19 20:00:00 GMT 2005


On Wed, Oct 19, 2005 at 11:50:39AM -0700, Evan Cheng wrote:
> This is a fix for PR 24418. i386.md is missing a pattern to combine a  
> subl followed by a cmpl $0.

I think this is wrong.

I think that cmpsi_minus_1 is exactly the pattern that you think
is missing, and that it isn't matching because the test requires
a cc mode other than the ones allowed by that pattern.  Which
implies that your new pattern will produce incorrect results for
some set of boundary conditions.

This is nasty complicated stuff, so feel free to prove me wrong,
but I don't think this is a simple matter of a missing pattern.


r~



More information about the Gcc-patches mailing list