https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104610
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note even without avx512f, LLVM does: movdqu (%rdi), %xmm0 movdqu 16(%rdi), %xmm1 pcmpeqb .LCPI0_0(%rip), %xmm1 pcmpeqb .LCPI0_1(%rip), %xmm0 pand %xmm1, %xmm0 pmovmskb %xmm0, %eax cmpl $65535, %eax # imm = 0xFFFF sete %al