Add support for conditional reductions using SVE CLASTB
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / sve / loop_add_3.c
blob9d2c5981cd763a6266d4a762afc1fb4e03ae2e11
1 /* { dg-do compile } */
2 /* { dg-options "-std=c99 -O3" } */
4 void
5 f (int *__restrict a,
6 int *__restrict b,
7 int *__restrict c,
8 int *__restrict d,
9 int *__restrict e,
10 int *__restrict f,
11 int *__restrict g,
12 int *__restrict h,
13 int count)
15 for (int i = 0; i < count; ++i)
16 a[i] = b[i] + c[i] + d[i] + e[i] + f[i] + g[i] + h[i];
19 /* { dg-final { scan-assembler-times {\tld1w\tz[0-9]+.s, p[0-7]+/z, \[x[0-9]+, x[0-9]+, lsl 2\]\n} 7 } } */
20 /* { dg-final { scan-assembler-times {\tst1w\tz[0-9]+.s, p[0-7]+, \[x[0-9]+, x[0-9]+, lsl 2\]\n} 1 } } */