1 /* { dg-do run { target aarch64_sve_hw } } */
2 /* { dg-options "-O2 -ftree-vectorize -ffast-math" } */
8 #define HARNESS(TYPE) \
10 TYPE a[N], b[3] = { 40, 22, 75 }; \
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, N / 3); \
20 for (unsigned int i = 0; i < N; i += 3) \
25 asm volatile ("" ::: "memory"); \
27 /* _Float16 isn't precise enough for this. */ \
28 if ((TYPE) 0x1000 + 1 != (TYPE) 0x1000 \
29 && (x0 != b[0] || x1 != b[1] || x2 != b[2])) \
33 int __attribute__ ((optimize (1)))