Re: [PATCH] [GCC 10 branch] tree-optimization: [PR102622]: wrong code due to signed one bit integer and "a?-1:0"

2021-10-11 Thread Andrew Pinski via Gcc-patches
On Sun, Oct 10, 2021 at 11:41 PM Richard Biener via Gcc-patches wrote: > > On Mon, Oct 11, 2021 at 1:20 AM apinski--- via Gcc-patches > wrote: > > > > From: Andrew Pinski > > > > So here is the GCC 10 branch version which fixes the wrong code. > > The problem is we create a negation of an one

Re: [PATCH] [GCC 10 branch] tree-optimization: [PR102622]: wrong code due to signed one bit integer and "a?-1:0"

2021-10-11 Thread Richard Biener via Gcc-patches
On Mon, Oct 11, 2021 at 1:20 AM apinski--- via Gcc-patches wrote: > > From: Andrew Pinski > > So here is the GCC 10 branch version which fixes the wrong code. > The problem is we create a negation of an one bit signed integer type > which is undefined if the value was -1. > This is not needed

[PATCH] [GCC 10 branch] tree-optimization: [PR102622]: wrong code due to signed one bit integer and "a?-1:0"

2021-10-10 Thread apinski--- via Gcc-patches
From: Andrew Pinski So here is the GCC 10 branch version which fixes the wrong code. The problem is we create a negation of an one bit signed integer type which is undefined if the value was -1. This is not needed for GCC 11 branch since the case is handled differently there and has been fixed