(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
aarch64/
sve/
reduc_4.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -ftree-vectorize -ffast-math --param aarch64-sve-compare-costs=0" } */
       3  
       4  double
       5  f (double *restrict a, double *restrict b, int *lookup)
       6  {
       7    double res = 0.0;
       8    for (int i = 0; i < 512; ++i)
       9      res += a[lookup[i]] * b[i];
      10    return res;
      11  }
      12  
      13  /* { dg-final { scan-assembler-times {\tfmla\tz[0-9]+.d, p[0-7]/m, } 2 } } */
      14  /* Check that the vector instructions are the only instructions.  */
      15  /* { dg-final { scan-assembler-times {\tfmla\t} 2 } } */
      16  /* { dg-final { scan-assembler-not {\tfadd\t} } } */
      17  /* { dg-final { scan-assembler-times {\tfaddv\td0,} 1 } } */
      18  /* { dg-final { scan-assembler-not {\tsel\t} } } */