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]

Re: ifcvt.c and STORE_FLAG_VALUE


On Thu, May 04, 2000 at 02:24:27PM -0400, Richard Kenner wrote:
> Note that STORE_FLAG_VALUE can be the most negative number (e.g., a29k),
> so negating it needs to be done carefully in any event.

I'm fairly certain we're safe wrt that, though I did not try
to build and test a29k just to be sure.  The change originally
proposed was

-      if (diff == STORE_FLAG_VALUE || diff == -STORE_FLAG_VALUE)
+      if (diff == STORE_FLAG_VALUE || -diff == STORE_FLAG_VALUE)

which would make no difference wrt INT_MIN.


r~

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