(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
profile-generate-4.c
       1  /* PR106912 */
       2  /* { dg-require-profiling "-fprofile-generate" } */
       3  /* { dg-options "-O2 -fprofile-generate -ftree-vectorize" } */
       4  
       5  __attribute__ ((__simd__))
       6  __attribute__ ((__nothrow__ , __leaf__ , __const__, __noinline__))
       7  double foo (double x);
       8  
       9  void bar(double *f, int n)
      10  {
      11    int i;
      12    for (i = 0; i < n; i++)
      13      f[i] = foo(f[i]);
      14  }
      15  
      16  double foo(double x)
      17  {
      18    return x * x / 3.0;
      19  }