https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105532
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #2) > Confirmed. > The bug is either in tree_nonzero_bits and should not be doing: > return wi::shwi (-1, TYPE_PRECISION (TREE_TYPE (t))); Just FYI, TYPE_PRECISION for vectors is a log2 of the number of elements, see TYPE_VECTOR_SUBPARTS. Which is why you get 0 here since we have 1 element.