(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
vect/
vect-2.c
       1  /* { dg-require-effective-target vect_int } */
       2  /* { dg-add-options bind_pic_locally } */
       3  
       4  #include <stdarg.h>
       5  #include "tree-vect.h"
       6  
       7  #define N 16
       8  
       9  char cb[N] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
      10  char ca[N] = {};
      11  
      12  __attribute__ ((noinline)) 
      13  int main1 ()
      14  {  
      15    int i;
      16  
      17    for (i = 0; i < N; i++)
      18      {
      19        ca[i] = cb[i];
      20      }
      21  
      22    /* check results:  */
      23    for (i = 0; i < N; i++)
      24      {
      25        if (ca[i] != cb[i])
      26          abort ();
      27      }
      28  
      29    return 0;
      30  }
      31  
      32  int main (void)
      33  { 
      34    check_vect ();
      35    
      36    return main1 ();
      37  } 
      38  
      39  /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
      40  /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */