]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/vect/vect-123.c
Fix profile update after prologue peeling in vectorizer
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / vect / vect-123.c
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
3 /* { dg-additional-options "-fdump-tree-optimized-details-blocks" } */
4
5 int x[4092];
6 int y[1024];
7
8 void foo (int s)
9 {
10 int i, j;
11 for (i = 0, j = 0; j < 1023; i += s, j++)
12 y[j] += x[i];
13 }
14
15 /* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } } */
16 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */