[AArch64] Fix SVE testsuite failures for ILP32 (PR 83846)
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / sve / const_pred_1.C
blob25b7663273fef57f2c6bec58d534d3a1873f3100
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -msve-vector-bits=256" } */
4 #include <stdint.h>
6 typedef int8_t vnx16qi __attribute__((vector_size(32)));
8 vnx16qi
9 foo (vnx16qi x, vnx16qi y)
11   return (vnx16qi) { -1, 0, 0, -1, -1, -1, 0, 0,
12                      -1, -1, -1, -1, 0, 0, 0, 0,
13                      -1, -1, -1, -1, -1, -1, -1, -1,
14                      0, 0, 0, 0, 0, 0, 0, 0 } ? x : y;
17 /* { dg-final { scan-assembler {\tldr\tp[0-9]+,} } } */
18 /* { dg-final { scan-assembler {\t\.byte\t57\n\t\.byte\t15\n\t\.byte\t(255|-1)\n\t\.byte\t0\n} } } */