[AArch64] SVE tests
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / sve / pack_fcvt_signed_1.c
blob367fbd967a3e912a6d8315e2ad2cee2b957a474b
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-vectorize" } */
4 #include <stdint.h>
6 void __attribute__ ((noinline, noclone))
7 pack_int_double_plus_3 (int32_t *d, double *s, int size)
9 for (int i = 0; i < size; i++)
10 d[i] = s[i] + 3;
13 /* { dg-final { scan-assembler-times {\tfcvtzs\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 } } */