(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
aarch64/
sve/
reduc_strict_7.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-details" } */
       3  
       4  /* Strict FP reductions shouldn't be used for the outer loop, only the
       5     inner loop.  */
       6  
       7  float
       8  double_reduc (float (*i)[16])
       9  {
      10    float l = 0;
      11  
      12  #pragma GCC unroll 0
      13    for (int a = 0; a < 8; a++)
      14      for (int b = 0; b < 100; b++)
      15        l += i[b][a];
      16    return l;
      17  }
      18  
      19  /* { dg-final { scan-assembler-times {\tfadda\ts[0-9]+, p[0-7], s[0-9]+, z[0-9]+\.s\n} 1 } } */
      20  /* { dg-final { scan-tree-dump "Detected double reduction" "vect" } } */
      21  /* { dg-final { scan-tree-dump-not "OUTER LOOP VECTORIZED" "vect" } } */