/* { dg-do assemble { target aarch64_asm_sve_ok } } */ /* { dg-options "-O3 --save-temps" } */ #include void __attribute__ ((noinline, noclone)) vfcvtz_16 (uint16_t *dst, _Float16 *src1, int size) { for (int i = 0; i < size; i++) dst[i] = (uint16_t) src1[i]; } void __attribute__ ((noinline, noclone)) vfcvtz_32 (uint32_t *dst, float *src1, int size) { for (int i = 0; i < size; i++) dst[i] = (uint32_t) src1[i]; } void __attribute__ ((noinline, noclone)) vfcvtz_64 (uint64_t *dst, double *src1, int size) { for (int i = 0; i < size; i++) dst[i] = (uint64_t) src1[i]; } /* { dg-final { scan-assembler-times {\tfcvtzu\tz[0-9]+\.h, p[0-7]/m, z[0-9]+\.h\n} 1 } } */ /* { dg-final { scan-assembler-times {\tfcvtzu\tz[0-9]+\.s, p[0-7]/m, z[0-9]+\.s\n} 1 } } */ /* { dg-final { scan-assembler-times {\tfcvtzu\tz[0-9]+\.d, p[0-7]/m, z[0-9]+\.d\n} 1 } } */