(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
vect/
tsvc/
vect-tsvc-s471.c
       1  /*  This file is distributed under the University of Illinois Open Source
       2      License. See license.txt for details.  */
       3  
       4  /* { dg-additional-options "--param vect-epilogues-nomask=0" } */
       5  /* { dg-require-effective-target vect_float } */
       6  
       7  #include "tsvc.h"
       8  
       9  int s471s(void)
      10  {
      11  // --  dummy subroutine call made in s471
      12      return 0;
      13  }
      14  
      15  real_t s471(struct args_t * func_args){
      16  
      17  //    call statements
      18  
      19      int m = LEN_1D;
      20  
      21      initialise_arrays(__func__);
      22  
      23      for (int nl = 0; nl < iterations/2; nl++) {
      24          for (int i = 0; i < m; i++) {
      25              x[i] = b[i] + d[i] * d[i];
      26              s471s();
      27              b[i] = c[i] + d[i] * e[i];
      28          }
      29          dummy(a, b, c, d, e, aa, bb, cc, 0.);
      30      }
      31  
      32      return calc_checksum(__func__);
      33  }
      34  
      35  int main (int argc, char **argv)
      36  {
      37    int n1 = 1;
      38    int n3 = 1;
      39    int* ip;
      40    real_t s1,s2;
      41    init(&ip, &s1, &s2);
      42  
      43    run(&s471, "s471", NULL);
      44  
      45    return 0;
      46  }
      47  
      48  
      49  /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */