1 /* { dg-do run { target aarch64_sve_hw } } */
2 /* { dg-options "-O2 -ftree-vectorize" } */
8 #define HARNESS(TYPE) \
10 TYPE a[N], b[4] = { 41, 25, 31, 62 }; \
11 for (unsigned int i = 0; i < N; ++i) \
13 a[i] = i * 2 + i % 5; \
14 asm volatile ("" ::: "memory"); \
16 vec_slp_##TYPE (a, N / 4); \
17 for (unsigned int i = 0; i < N; ++i) \
19 TYPE orig = i * 2 + i % 5; \
20 TYPE expected = orig + b[i % 4]; \
21 if (a[i] != expected) \
26 int __attribute__ ((optimize (1)))