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] |
On Sun, 7 Mar 2004, Paolo Bonzini wrote: > > Consider the following counter example, for unsigned short x, > > "x-- > 0" is not equivalent to "--x > 65535". Notice that this > > transformation only works for equality and inequality. > > But you can convert for signed short x, x-- > -32768 to --x > 32767, > because overflow semantics are not defined. Consider x equals zero. "x-- > -32768" is true, but "--x > 32767" isn't. Roger --
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |