gcc/testsuite/g++.dg/vect/pr95487.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; |
| 6 | bool d; |
| 7 | char e; |
| 8 | extern short f[]; |
| 9 | extern int g[]; |
| 10 | short j; |
| 11 | void h() { |
| 12 | for (short b = j; b < 0; b += 2) { |
| 13 | f[b] = 0; |
| 14 | if (d) { |
| 15 | for (char c = 0; c < a; c += 3) |
| 16 | e = 0; |
| 17 | g[b] = 0; |
| 18 | } |
| 19 | } |
| 20 | } |