https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81271
--- Comment #3 from Nathan Sidwell <nathan at gcc dot gnu.org> --- fwiw, I was kind of hoping the compiler could spot the test of three adjacent bits and do a 3-bit extraction and comparison to zero.