i386: Adjust rtx cost for imulq and imulw [PR115749]
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr34195.c
blobe36950ba4295308fc8f609c01ad25a9e70cf3ac3
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_float } */
4 #define M 11
6 struct S
8 float x;
9 float y;
10 } pS[100];
12 float a[1000];
13 float b[1000];
15 void
16 foo (int n)
18 int i, j;
20 for (i = 0; i < n; i++)
22 pS[i].x = 0;
23 pS[i].y = 0;
25 for (j = 0; j < M; j++)
27 pS[i].x += (a[i]+b[i]);
28 pS[i].y += (a[i]-b[i]);
33 /* { dg-final { scan-tree-dump "OUTER LOOP VECTORIZED" "vect" } } */