https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85375
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |10.3.0 See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=95527 Target Milestone|--- |11.0 Resolution|--- |FIXED Status|NEW |RESOLVED Known to work| |11.1.0 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- After r11-1080 (PR 95527), __builtin_ffs(x) && x becomes just x != 0 and optimized. So yes fixed for GCC 11.