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