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: PATCH: PR target/42542: Vectorizer produces incorrect results on max of signed intergers


On 01/05/2010 07:55 AM, Paolo Bonzini wrote:
You can always subtract (or XOR) the sign bit to turn an unsigned value
to the corresponding signed value.

While the two operations in this case are identical, I think it's clearer to use SUB than XOR. And yes, this mapping works well.



r~



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