libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / profile-generate-4.c
blobc2b999fe4cb378a5f0b4e83d40910f3cd6378ede
1 /* PR106912 */
2 /* { dg-require-profiling "-fprofile-generate" } */
3 /* { dg-options "-O2 -fprofile-generate -ftree-vectorize" } */
5 __attribute__ ((__simd__))
6 __attribute__ ((__nothrow__ , __leaf__ , __const__, __noinline__))
7 double foo (double x);
9 void bar(double *f, int n)
11 int i;
12 for (i = 0; i < n; i++)
13 f[i] = foo(f[i]);
16 double foo(double x)
18 return x * x / 3.0;