Merged with mainline at revision 128810.
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / costmodel / spu / costmodel-vect-33.c
blobdf92ceb9e8183242ec94445a271f1b5edd2bb912
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
4 #include <stdarg.h>
5 #include "../../tree-vect.h"
7 #define N 16
8 struct test {
9 char ca[N];
12 extern struct test s;
14 int main1 ()
16 int i;
18 for (i = 0; i < N; i++)
20 s.ca[i] = 5;
23 /* check results: */
24 for (i = 0; i < N; i++)
26 if (s.ca[i] != 5)
27 abort ();
30 return 0;
33 int main (void)
35 return main1 ();
38 /* { dg-final { scan-tree-dump-times "vectorization not profitable" 0 "vect" } } */
39 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
40 /* { dg-final { cleanup-tree-dump "vect" } } */