Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr31343.c
blobe72daf0e5a5597c97c58be87396a17057553748e
1 /* { dg-do compile } */
3 #define N 16
5 struct
7 unsigned int x;
8 unsigned int y;
9 } pS [100];
11 void
12 main1 ()
14 int i, j;
15 unsigned int ub[N] =
16 { 1, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45 };
17 unsigned int uc[N] =
18 { 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
19 unsigned int udiffx, udiffy;
21 for (i = 0; i < N; i++)
23 pS[i].x = 0;
24 pS[i].y = 0;
25 for (j = 0; j < N; j++)
27 udiffx = (ub[j] - uc[j]);
28 udiffy = (ub[j] - uc[j]);
29 pS[i].x = udiffx;
30 pS[i].y = udiffy;