Add support for conditional reductions using SVE CLASTB
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / sve / const_pred_3.C
blob16d0a33f50e9ddb63f4fab81f80100da32f76270
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -msve-vector-bits=256" } */
4 typedef int vnx4si __attribute__((vector_size(32)));
6 vnx4si
7 foo (vnx4si x, vnx4si y)
9   return (vnx4si) { -1, 0, 0, -1, -1, -1, 0, 0 } ? x : y;
12 /* { dg-final { scan-assembler {\tldr\tp[0-9]+,} } } */
13 /* { dg-final { scan-assembler {\t\.byte\t1\n\t\.byte\t16\n\t\.byte\t17\n\t\.byte\t0\n} } } */