https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79454
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 40712 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40712&action=edit gcc7-pr79454.patch Untested fix. The problem was if the vector type had non-BLKmode, but not vector mode, like e.g. for the 16xchar vector TImode, we actually performed the addition to get the result in TImode rather than in V16QImode (not really supported), or saving the result inside of the loop from each separate comparison.