2018-01-16 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr81136.c
blob99405b5cdf458acca4bdabf3c4bc5d5832bb572b
1 /* { dg-do compile } */
3 #include "tree-vect.h"
5 #if VECTOR_BITS > 256
6 #define ALIGNMENT (VECTOR_BITS / 8)
7 #else
8 #define ALIGNMENT 32
9 #endif
11 struct __attribute__((aligned (ALIGNMENT)))
13 char misaligner;
14 int foo[100];
15 int bar[100];
16 } *a;
18 void
19 fn1 (int n)
21 int *b = a->foo;
22 for (int i = 0; i < n; i++)
23 a->bar[i] = b[i];
26 /* { dg-final { scan-tree-dump-not "Unknown misalignment" "vect" } } */