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  real_t s353(struct args_t * func_args)
      10  {
      11  //    loop rerolling
      12  //    unrolled sparse saxpy
      13  //    gather is required
      14  
      15      int * __restrict__ ip = func_args->arg_info;
      16  
      17      initialise_arrays(__func__);
      18  
      19      real_t alpha = c[0];
      20      for (int nl = 0; nl < iterations; nl++) {
      21          for (int i = 0; i < LEN_1D; i += 5) {
      22              a[i] += alpha * b[ip[i]];
      23              a[i + 1] += alpha * b[ip[i + 1]];
      24              a[i + 2] += alpha * b[ip[i + 2]];
      25              a[i + 3] += alpha * b[ip[i + 3]];
      26              a[i + 4] += alpha * b[ip[i + 4]];
      27          }
      28          dummy(a, b, c, d, e, aa, bb, cc, 0.);
      29      }
      30  
      31      return calc_checksum(__func__);
      32  }
      33  
      34  int main (int argc, char **argv)
      35  {
      36    int n1 = 1;
      37    int n3 = 1;
      38    int* ip;
      39    real_t s1,s2;
      40    init(&ip, &s1, &s2);
      41  
      42    run(&s353, "s353", ip);
      43  
      44    return 0;
      45  }
      46  
      47  /* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" { xfail *-*-* } } } */