This is the mail archive of the gcc-patches@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]

Re: vrp extracts range from negative multiply/divide ranges incorrectly


On Sun, Apr 17, 2005 at 05:12:29PM -0300, Alexandre Oliva wrote:

> If negative values are present in the ranges of operands of a multiply
> or a divide expression, the ranges we compute may be incorrect.  This
> patch appears to fix them all.  Tested on amd64-linux-gnu.  Ok to
> install?
> 
Test case?  The code in extract_range_from_binary_expr is a bit
eager about setting the resulting range to VARYING when it finds
that the two range endpoints get swapped around, but it shouldn't
be generating invalid ranges.

The additional cases you are adding will probably allow better
range precision.  Got a test case for that too?


Diego.


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