]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/vect/pr98308.c
Fix profile update after cancelled loop distribution
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / vect / pr98308.c
1 /* { dg-do compile } */
2 /* { dg-additional-options "-O3" } */
3 /* { dg-additional-options "-march=skylake-avx512" { target avx512f } } */
4 /* { dg-additional-options "-fdump-tree-optimized-details-blocks" } */
5
6 extern unsigned long long int arr_86[];
7 extern unsigned long long int arr_87[][15];
8
9 void test(_Bool a, unsigned short c[][15], unsigned char d[])
10 {
11 for (short h = 0; h < 10; h++)
12 for (char i = 0; i < 15; i += 2)
13 {
14 arr_86[0] = d[0];
15 arr_87[h][0] = a ? c[h][i] : 0;
16 }
17 }
18 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */