Merged with mainline at revision 128810.
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / costmodel / spu / costmodel-vect-68a.c
blobd0d40ac338a310a2d044d807f3fb56d3188becd9
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 /* 1. unaligned */
26 for (i = 0; i < N; i++)
28 tmp1.a.n[1][2][i] = 5;
31 /* check results: */
32 for (i = 0; i <N; i++)
34 if (tmp1.a.n[1][2][i] != 5)
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" } } */