gcc/testsuite/g++.dg/vect/pr102572.cc
raw| 1 | // { dg-do compile } |
| 2 | // { dg-additional-options "-O3" } |
| 3 | // { dg-additional-options "-march=skylake-avx512" { target x86_64-*-* i?86-*-* } } |
| 4 | |
| 5 | int a, b, c, f; |
| 6 | void g(bool h, int d[][5]) |
| 7 | { |
| 8 | for (short i = f; i; i += 1) |
| 9 | { |
| 10 | a = h && d[0][i]; |
| 11 | for (int j = 0; j < 4; j += c) |
| 12 | b = 0; |
| 13 | } |
| 14 | } |