]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/vect/pr98308.c
Fix profile update after cancelled loop distribution
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / vect / pr98308.c
CommitLineData
9e79d76a
RB
1/* { dg-do compile } */
2/* { dg-additional-options "-O3" } */
3/* { dg-additional-options "-march=skylake-avx512" { target avx512f } } */
2e93b92c 4/* { dg-additional-options "-fdump-tree-optimized-details-blocks" } */
9e79d76a
RB
5
6extern unsigned long long int arr_86[];
7extern unsigned long long int arr_87[][15];
8
9void 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}
2e93b92c 18/* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */