| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-additional-options "-O3" } */ |
| 3 |
/* { dg-additional-options "-march=skylake-avx512" { target x86_64-*-* i?86-*-* } } */ |
| 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" } } */ |