https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85406
--- Comment #4 from Allan Jensen <linux at carewolf dot com> --- Created attachment 43995 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43995&action=edit gccbug85406.cpp This version compiles with a pcmpeqd and pandn instead of a blend, but the principle is the same. Though the last of a ptest in the beginning is worse, as that risks a performance regression compared to non-vectorized.