https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111402
--- Comment #2 from Hongtao.liu <crazylht at gmail dot com> --- Adjust code in foo1, use < n instead of != n, the issue remains. void foo1 (v4di* __restrict a, v4di *b, int n) { for (int i = 0; i < n; i+=2) { a[i] = b[i]; a[i+1] = b[i+1]; } }