Add support for conditional reductions using SVE CLASTB
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / sve / unpack_fcvt_signed_1.c
blob83ffe8552c2091317191fbf550226fd09548bea6
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-vectorize -fno-inline" } */
4 #include <stdint.h>
6 void __attribute__ ((noinline, noclone))
7 unpack_double_int_plus8 (double *d, int32_t *s, int size)
9 for (int i = 0; i < size; i++)
10 d[i] = s[i] + 8;
13 /* { dg-final { scan-assembler-times {\tuunpklo\tz[0-9]+\.d, z[0-9]+\.s\n} 1 } } */
14 /* { dg-final { scan-assembler-times {\tuunpkhi\tz[0-9]+\.d, z[0-9]+\.s\n} 1 } } */
15 /* { dg-final { scan-assembler-times {\tscvtf\tz[0-9]+\.d, p[0-7]/m, z[0-9]+\.s\n} 2 } } */