(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
vect/
fast-math-vect-reduc-9.c
       1  /* { dg-require-effective-target vect_float } */
       2  
       3  #include "tree-vect.h"
       4  
       5  float x[1024];
       6  float
       7  test (void)
       8  {
       9    int i;
      10    float gosa = 0.0;
      11    for (i = 0; i < 1024; ++i)
      12      {
      13        float tem = x[i];
      14        gosa += tem * tem;
      15      }
      16    return gosa;
      17  }
      18  
      19  int main (void)
      20  {
      21    check_vect ();
      22  
      23    if (test () != 0.0)
      24      abort ();
      25  
      26    return 0;
      27  }
      28  
      29  /* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } } */