value-range: Fix handling of POLY_INT_CST anti-ranges [PR96146]
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / sve / acle / general / and_1.c
blob59348cece976b302c42a9e22a4c1bf75901113c5
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
4 #include <arm_sve.h>
6 void
7 test1 (svbool_t pg, svbool_t x, svbool_t y, int *any, svbool_t *ptr)
9 svbool_t res = svand_z (pg, x, y);
10 *any = svptest_any (pg, res);
11 *ptr = res;
14 int
15 test2 (svbool_t pg, svbool_t x, svbool_t y, int *any)
17 svbool_t res = svand_z (pg, x, y);
18 return svptest_any (pg, res);
21 /* { dg-final { scan-assembler-times {\tands\t} 2 } } */
22 /* { dg-final { scan-assembler-not {\tand\t} } } */