(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
aarch64/
sve/
index_1_run.c
       1  /* { dg-do run { target aarch64_sve256_hw } } */
       2  /* { dg-options "-O2 -ftree-vectorize -msve-vector-bits=256" } */
       3  
       4  #include "index_1.c"
       5  
       6  #define TEST_LOOP(TYPE, BASE, STEP, SUFFIX)	\
       7    {						\
       8      TYPE array[NUM_ELEMS (TYPE)] = {};		\
       9      loop_##TYPE##_##SUFFIX (array);		\
      10      for (int i = 0; i < NUM_ELEMS (TYPE); i++)	\
      11        if (array[i] != (TYPE) (BASE + i * STEP))	\
      12  	__builtin_abort ();			\
      13    }
      14  
      15  int __attribute__ ((optimize (1)))
      16  main ()
      17  {
      18    TEST_ALL (TEST_LOOP)
      19    return 0;
      20  }