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