(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
vect/
tsvc/
vect-tsvc-s1161.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  real_t s1161(struct args_t * func_args)
      10  {
      11  //    control flow
      12  //    tests for recognition of loop independent dependences
      13  //    between statements in mutually exclusive regions.
      14  
      15      initialise_arrays(__func__);
      16  
      17      for (int nl = 0; nl < iterations; nl++) {
      18          for (int i = 0; i < LEN_1D-1; ++i) {
      19              if (c[i] < (real_t)0.) {
      20                  goto L20;
      21              }
      22              a[i] = c[i] + d[i] * e[i];
      23              goto L10;
      24  L20:
      25              b[i] = a[i] + d[i] * d[i];
      26  L10:
      27              ;
      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(&s1161, "s1161", NULL);
      44  
      45    return 0;
      46  }
      47  
      48  /* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" { xfail { ! aarch64_sve }  } } } */