]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.target/aarch64/sve2/acle/general/whilerw_1.c
[AArch64] Add support for the SVE2 ACLE
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / aarch64 / sve2 / acle / general / whilerw_1.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3
4 #include <arm_sve.h>
5
6 void
7 test1 (int8_t *x, int8_t *y, int *any, svbool_t *ptr)
8 {
9 svbool_t res = svwhilerw (x, y);
10 *any = svptest_last (svptrue_b8 (), res);
11 *ptr = res;
12 }
13
14 int
15 test2 (int8_t *x, int8_t *y)
16 {
17 svbool_t res = svwhilerw (x, y);
18 return svptest_last (svptrue_b8 (), res);
19 }
20
21 /* { dg-final { scan-assembler-times {\twhilerw\t} 2 } } */
22 /* { dg-final { scan-assembler-not {\tptrue\t} } } */
23 /* { dg-final { scan-assembler-not {\tptest\t} } } */