Re: [PATCH] tree-optimization/105629 - spaceship recognition regression

2022-05-23 Thread Jakub Jelinek via Gcc-patches
On Mon, May 23, 2022 at 12:53:37PM +0200, Richard Biener wrote: > With the extra GENERIC folding we now do to > (unsigned int) __v._M_value & 1 != (unsigned int) __v._M_value > we end up with a sign-extending conversion to unsigned int > rather than the sign-conversion to unsigned char we expect. >

[PATCH] tree-optimization/105629 - spaceship recognition regression

2022-05-23 Thread Richard Biener via Gcc-patches
With the extra GENERIC folding we now do to (unsigned int) __v._M_value & 1 != (unsigned int) __v._M_value we end up with a sign-extending conversion to unsigned int rather than the sign-conversion to unsigned char we expect. Relaxing that fixes the regression. Bootstrapped and tested on x86_64-un