https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98954
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Last reconfirmed| |2021-02-28
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The generic transformation is
((X << CST0) & CST1) == 0
to
0 == (X & (CST1 >> CST0))
Note I think 0 could be replaced with CST2 but I am not 100% I could get it
correct.