Handle peeling for alignment with masking
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / sve / frintx_1.c
blob3437533024fb7e67ba086e38c2bfc5955e8e75e5
1 /* { dg-do assemble { target aarch64_asm_sve_ok } } */
2 /* { dg-options "-O2 -ftree-vectorize --save-temps" } */
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]); \
12 DO_OPS (float, rintf)
13 DO_OPS (double, rint)
15 /* { dg-final { scan-assembler-times {\tfrintx\tz[0-9]+\.s, p[0-7]/m, z[0-9]+\.s\n} 1 } } */
16 /* { dg-final { scan-assembler-times {\tfrintx\tz[0-9]+\.d, p[0-7]/m, z[0-9]+\.d\n} 1 } } */