OSDN Git Service

feaf58591300b775dbf5458cb6f38f51860e51d2
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / vect / costmodel / i386 / costmodel-vect-33.c
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
3
4 #include <stdarg.h>
5 #include "../../tree-vect.h"
6
7 #define N 16
8 struct test {
9   char ca[N];
10 };
11
12 extern struct test s;
13  
14 int main1 ()
15 {  
16   int i;
17
18   for (i = 0; i < N; i++)
19     {
20       s.ca[i] = 5;
21     }
22
23   /* check results:  */
24   for (i = 0; i < N; i++)
25     {
26       if (s.ca[i] != 5)
27         abort ();
28     }
29
30   return 0;
31 }
32
33 int main (void)
34
35   return main1 ();
36
37
38 /* { dg-final { scan-tree-dump-times "vectorization not profitable" 1 "vect" } } */
39 /* { dg-final { cleanup-tree-dump "vect" } } */