Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/vect/vect-121.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 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" } } */ |