Merged with mainline at revision 128810.
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / costmodel / spu / costmodel-vect-68b.c
blob4e52af8b851fefe2d6ef2f131f6a48e91043cc57
1 /* { dg-require-effective-target vect_int } */
3 #include <stdarg.h>
4 #include "../../tree-vect.h"
6 #define N 32
8 struct s{
9 int m;
10 int n[N][N][N];
13 struct test1{
14 struct s a; /* array a.n is unaligned */
15 int b;
16 int c;
17 struct s e; /* array e.n is aligned */
20 int main1 ()
22 int i,j;
23 struct test1 tmp1;
25 /* 2. aligned */
26 for (i = 3; i < N-1; i++)
28 tmp1.a.n[1][2][i] = 6;
31 /* check results: */
32 for (i = 3; i < N-1; i++)
34 if (tmp1.a.n[1][2][i] != 6)
35 abort ();
38 return 0;
41 int main (void)
43 check_vect ();
45 return main1 ();
48 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
49 /* { dg-final { cleanup-tree-dump "vect" } } */