[Bug tree-optimization/114684] `-(int)(unsigned:1)signed:1` could just be `(int)signed:1`

2024-04-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114684 Richard Biener changed: What|Removed |Added Last reconfirmed||2024-04-11

[Bug tree-optimization/114684] `-(int)(unsigned:1)signed:1` could just be `(int)signed:1`

2024-04-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114684 --- Comment #1 from Andrew Pinski --- Note clang Canonicalizes it into `-([b]&1)` (though on aarch64, they don't use sbfx while GCC does uses that).