(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
vect/
pr53185-2.c
       1  #include "tree-vect.h"
       2  
       3  void __attribute__((noinline,noclone))
       4  fn1 (int * __restrict f, int * __restrict d, unsigned short a, int c)
       5  {
       6    unsigned short e;
       7    for (e = 0; e < a; ++e)
       8      f[e] = d[e * c];
       9  }
      10  
      11  extern void abort (void);
      12  
      13  int main ()
      14  {
      15    int a[32], b[3 * 32];
      16    int i, off;
      17    check_vect ();
      18    for (i = 0; i < 3 * 32; ++i)
      19      b[i] = i;
      20    for (off = 0; off < 8; ++off)
      21      {
      22        fn1 (&a[off], &b[off], 32 - off, 3);
      23        for (i = 0; i < 32 - off; ++i)
      24  	if (a[off+i] != b[off+i*3])
      25  	  abort ();
      26      }
      27    return 0;
      28  }
      29