https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54700
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Marc Glisse from comment #4) > __v4su > f (__v4su a, __v4su b, __v4su c) > { > return a > INT_MAX ? b : c; > } We should be folding that to (__v4si) a < 0, don't we do that already? At least for non-vectors we do AFAIK.