Imported Upstream version 4.7.3
[platform/upstream/gcc48.git] / gcc / testsuite / gcc.dg / vect / vect-121.c
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_float } */
3
4 float *x;
5 float parm;
6 float
7 test (int start, int end)
8 {
9   int i;
10   for (i = start; i < end; ++i)
11     {
12       float tem = x[i];
13       x[i] = parm * tem;
14     }
15 }
16
17 /* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } } */
18 /* { dg-final { cleanup-tree-dump "vect" } } */