Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / vect / pr16105.c
blobddc669cf2d8e7abec0c919a59ad86c5a7fc180b5
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_float } */
4 #define VECTOR_SIZE 512
6 extern void check(const float * __restrict__ v);
8 void square(const float * __restrict__ a,
9 float * __restrict__ out)
11 unsigned int i;
12 for (i = 0; i < VECTOR_SIZE; i++) {
13 float ai = a[i];
14 float a2 = ai * ai;
15 out[i] = a2;
17 check(out);
20 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail vect_no_align } } } */
21 /* { dg-final { cleanup-tree-dump "vect" } } */