1 /* { dg-do assemble { target aarch64_asm_sve_ok } } */ 2 /* { dg-options "-O2 -ftree-vectorize --save-temps" } */ 3 4 #define DO_OPS(TYPE, OP) \ 5 void \ 6 vsqrt_##TYPE (TYPE *dst, TYPE *src, int count) \ 7 { \ 8 for (int i = 0; i < count; ++i) \ 9 dst[i] = __builtin_##OP (src[i]); \ 10 } 11 12 DO_OPS (float, floorf) 13 DO_OPS (double, floor) 14 15 /* { dg-final { scan-assembler-times {\tfrintm\tz[0-9]+\.s, p[0-7]/m, z[0-9]+\.s\n} 1 } } */ 16 /* { dg-final { scan-assembler-times {\tfrintm\tz[0-9]+\.d, p[0-7]/m, z[0-9]+\.d\n} 1 } } */ 17