1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3
4 #include <arm_sve.h>
5
6 void
test1(svbool_t pg,svbool_t x,int * any,svbool_t * ptr)7 test1 (svbool_t pg, svbool_t x, int *any, svbool_t *ptr)
8 {
9 svbool_t res = svbrka_z (pg, x);
10 *any = svptest_any (pg, res);
11 *ptr = res;
12 }
13
14 int
test2(svbool_t pg,svbool_t x,int * any)15 test2 (svbool_t pg, svbool_t x, int *any)
16 {
17 svbool_t res = svbrka_z (pg, x);
18 return svptest_any (pg, res);
19 }
20
21 /* { dg-final { scan-assembler-times {\tbrkas\tp[0-9]+\.b, p[0-9]+/z,} 2 } } */
22 /* { dg-final { scan-assembler-not {\tbrka\t} } } */
23