]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.target/aarch64/sve2/acle/general/whilewr_2.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
7 test1 (int16_t *x
, int16_t *y
, int *any
, svbool_t
*ptr
)
9 svbool_t res
= svwhilewr (x
, y
);
10 *any
= svptest_last (svptrue_b16 (), res
);
15 test2 (int16_t *x
, int16_t *y
)
17 svbool_t res
= svwhilewr (x
, y
);
18 return svptest_last (svptrue_b16 (), res
);
21 /* { dg-final { scan-assembler-times {\twhilewr\t} 2 } } */
22 /* { dg-final { scan-assembler-not {\tptrue\t} } } */
23 /* { dg-final { scan-assembler-not {\tptest\t} } } */