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 s332(struct args_t * func_args)
      10  {
      11  //    search loops
      12  //    first value greater than threshold
      13  
      14      int t = *(int*)func_args->arg_info;
      15  
      16      initialise_arrays(__func__);
      17  
      18      int index;
      19      real_t value;
      20      real_t chksum;
      21      for (int nl = 0; nl < iterations; nl++) {
      22          index = -2;
      23          value = -1.;
      24          for (int i = 0; i < LEN_1D; i++) {
      25              if (a[i] > t) {
      26                  index = i;
      27                  value = a[i];
      28                  goto L20;
      29              }
      30          }
      31  L20:
      32          chksum = value + (real_t) index;
      33          dummy(a, b, c, d, e, aa, bb, cc, chksum);
      34      }
      35  
      36      return value;
      37  }
      38  
      39  int main (int argc, char **argv)
      40  {
      41    int n1 = 1;
      42    int n3 = 1;
      43    int* ip;
      44    real_t s1,s2;
      45    init(&ip, &s1, &s2);
      46  
      47    run(&s332, "s332", &s1);
      48  
      49    return 0;
      50  }
      51  
      52  /* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" { xfail *-*-* } } } */