OSDN Git Service

PR tree-optimization/40542
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / vect / pr36493.c
1 /* { dg-require-effective-target vect_long } */
2
3 #include "tree-vect.h"
4
5 int
6 main (void)
7 {
8   int i;
9   long x[12] __attribute__((aligned(__BIGGEST_ALIGNMENT__)));
10
11   x[0] = 1;
12   for (i = 0; i < 12; i++)
13     x[i] = i;
14
15   if (x[0] != 0)
16     abort ();
17
18   return 0;
19 }
20
21 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect"  } } */
22 /* { dg-final { cleanup-tree-dump "vect" } } */
23