On 04 April 2006 10:39, Ashwin wrote:
> I have a combiner pattern that converts a sub-cmp pattern to a cmp insn,
> something like this -
> "if (a-1 < 0)"
> is converted to
> "if (a<1)"
>
> When 1 is subtracted from MIN,
> Similar problem seems to arise when MAX is passed to a function that
> does "return (++a < 0).
>
> How do I tackle this problem? Anything I may be missing?
Integer under/overflow being undefined behaviour? I imagine the point of
this testcase is to spot potential breakage introduced by just such
optimisations?
cheers,
DaveK
--
Can't think of a witty .sigline today....