gcc/testsuite/gcc.target/aarch64/sve/pack_fcvt_unsigned_1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -ftree-vectorize" } */ |
| 3 | |
| 4 | #include <stdint.h> |
| 5 | |
| 6 | void __attribute__ ((noinline, noclone)) |
| 7 | pack_int_double_plus_7 (uint32_t *d, double *s, int size) |
| 8 | { |
| 9 | for (int i = 0; i < size; i++) |
| 10 | d[i] = s[i] + 7; |
| 11 | } |
| 12 | |
| 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 } } */ |