aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr103517.c
blob: de87fc48f84f0531f99427e5a85e289910570789 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-additional-options "-march=skylake-avx512" { target x86_64-*-* i?86-*-* } } */

int a;
short b, c;
extern short d[];
void e() {
  for (short f = 1; f < (short)a; f += 2)
    if (d[f + 1]) {
      b = d[f];
      c = d[f + 1];
    }
}