gcc/testsuite/gcc.target/aarch64/sve/pack_float_1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -ftree-vectorize" } */ |
| 3 | |
| 4 | void __attribute__ ((noinline, noclone)) |
| 5 | pack_float_plus_1point1 (float *d, double *s, int size) |
| 6 | { |
| 7 | for (int i = 0; i < size; i++) |
| 8 | d[i] = s[i] + 1.1; |
| 9 | } |
| 10 | |
| 11 | /* { dg-final { scan-assembler-times {\tfcvt\tz[0-9]+\.s, p[0-7]/m, z[0-9]+\.d\n} 2 } } */ |
| 12 | /* { dg-final { scan-assembler-times {\tuzp1\tz[0-9]+\.s, z[0-9]+\.s, z[0-9]+\.s\n} 1 } } */ |