1 /* { dg-do run { target aarch64_sve_hw } } */
2 /* { dg-options "-O2 -ftree-vectorize" } */
8 #define HARNESS(TYPE) \
10 TYPE a[N], b[2] = { 3, 11 }; \
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, b[0], b[1], N / 2); \
17 for (unsigned int i = 0; i < N; ++i) \
19 TYPE orig = i * 2 + i % 5; \
20 TYPE expected = orig + b[i % 2]; \
21 if (a[i] != expected) \
26 int __attribute__ ((optimize (1)))