1 /* { dg-do run { target aarch64_sve_hw } } */
2 /* { dg-options "-O2 -ftree-vectorize" } */
4 #include "struct_vect_20.c"
7 #define TEST_LOOP(NAME, TYPE) \
11 for (int i = 0; i < N; ++i) \
14 asm volatile ("" ::: "memory"); \
16 for (int i = 0; i < N * 2; ++i) \
19 asm volatile ("" ::: "memory"); \
22 for (int i = 0; i < N; ++i) \
24 TYPE expected = i * 7 / 2 + in[i * 2]; \
25 if (out[i] != expected) \
27 asm volatile ("" ::: "memory"); \
31 int __attribute__ ((optimize (1)))