Add support for conditional reductions using SVE CLASTB
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / sve / unpack_fcvt_unsigned_1.c
blobe2f6b1a45ce239ea700b9d50de59cd5f3ac7553d
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-vectorize" } */
4 #include <stdint.h>
6 void __attribute__ ((noinline, noclone))
7 unpack_double_int_plus9 (double *d, uint32_t *s, int size)
9 for (int i = 0; i < size; i++)
10 d[i] = (double) (s[i] + 9);
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 {\tucvtf\tz[0-9]+\.d, p[0-7]/m, z[0-9]+\.s\n} 2 } } */