https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82028
--- Comment #6 from LIU Hao <lh_mouse at 126 dot com> --- Looks like this has been fixed? https://gcc.godbolt.org/z/xP5E76aYz Despite that however, GCC generates suboptimal code that uses an XMM register to perform the bitwise AND operation.