aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/bb-slp-65.c
blob: ec1707be9f5baaaf72c6144549c0c16d96d1c291 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-additional-options "-O3" } */
/* { dg-additional-options "-mavx2" { target x86_64-*-* i?86-*-* } } */

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