Debian Codegraph @

gcc/testsuite/gcc.dg/vect/fast-math-vect-pow-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-additional-options "-ffast-math" } */
3 /* { dg-require-effective-target vect_float } */
4
5 float x[256];
6
7 void foo(void)
8 {
9 int i;
10 for (i=0; i<256; ++i)
11 x[i] = x[i] * x[i];
12 }
13
14 /* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } } */