aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/pr63563.c
blob: ce3e4658e7532fbaf4a7701f4980dd4281e7e13b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* PR tree-optimization/63563 */
/* { dg-do compile } */
/* { dg-options "-O3 -mavx2" } */

struct A { unsigned long a, b, c, d; } a[1024] = { { 0, 1, 2, 3 } }, b;

void
foo (void)
{
  int i;
  for (i = 0; i < 1024; i++)
    {
      a[i].a = a[i].b = a[i].c = b.c;
      if (a[i].d)
	a[i].d = b.d;
    }
}