[AArch64] SVE tests
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / sve / unpack_float_1.c
blob14a636b5fda120243efc4f6a257aba0864c619c9
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-vectorize" } */
4 void __attribute__ ((noinline, noclone))
5 unpack_float_plus_7point9 (double *d, float *s, int size)
7 for (int i = 0; i < size; i++)
8 d[i] = s[i] + 7.9;
11 /* { dg-final { scan-assembler-times {\tuunpklo\tz[0-9]+\.d, z[0-9]+\.s\n} 1 } } */
12 /* { dg-final { scan-assembler-times {\tuunpkhi\tz[0-9]+\.d, z[0-9]+\.s\n} 1 } } */
13 /* { dg-final { scan-assembler-times {\tfcvt\tz[0-9]+\.d, p[0-7]/m, z[0-9]+\.s\n} 2 } } */