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[4] = { 40, 22, 75, 19 }; \
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 / 4); \
21 for (unsigned int i = 0; i < N; i += 4) \
27 asm volatile ("" ::: "memory"); \
29 /* _Float16 isn't precise enough for this. */ \
30 if ((TYPE) 0x1000 + 1 != (TYPE) 0x1000 \
31 && (x0 != b[0] || x1 != b[1] || x2 != b[2] || x3 != b[3])) \
35 int __attribute__ ((optimize (1)))