Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/vect/fast-math-slp-27.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-require-effective-target vect_float } */ | |
3 | |
4 float x[2*256+1]; | |
5 | |
6 void foo(void) | |
7 { | |
8 int i; | |
9 for (i=0; i<256; ++i) | |
10 { | |
11 x[2*i] = x[2*i] * x[2*i]; | |
12 x[2*i+1] = x[2*i+1] * x[2*i+1]; | |
13 } | |
14 } | |
15 | |
16 /* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" { target vect_strided2 } } } */ |