OSDN Git Service

2007-12-06 Zdenek Dvorak <ook@ucw.cz>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / vect / vect-99.c
1 /* { dg-require-effective-target vect_int } */
2
3 int ca[100];
4
5 __attribute__ ((noinline))
6 void foo (int n)
7 {
8   unsigned int i;
9
10   for (i = 0; i < n; i++)
11     ca[i] = 2;
12 }
13
14 int main (void)
15 {
16   return 0;
17 }
18
19 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
20 /* { dg-final { cleanup-tree-dump "vect" } } */