summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr29637.c
blob: 5dfee41b1d5c9e9c2f09389dce8cc74f4e8a92ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* PR tree-optimization/29637 */
/* { dg-do compile } */
/* { dg-options "-O2 -ftree-vectorize" } */

typedef struct __attribute__ ((aligned (8)))
{
    short a, b, c, d;
} A;

typedef struct
{
  A a[24];
} B;

static const A b = { 0, 0, 1, -1 };

void
foo (B *x)
{
  int i;
  for (i = 0; i <= 20; i += 4)
    x->a[i] = b;
}