https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78102
--- Comment #16 from Marc Glisse <glisse at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #6) > Or, if we are ok that for SSE4.1 (and not SSE4.2) the vectorizer just won't > be able to use those V2DI equality (and gt?) comparisons, then revert part > of the r217608 change and fold the builtin into generic vector comparison > if SSE4.2+. Yeah, actually, if it is just the one instruction on one minor subtarget, that sounds fine to me. But now that you have written this great patch that handles the situation perfectly, that's even better :-) Thanks.