1 /* { dg-do compile { target aarch64*-*-* } } */
2 /* { dg-options "-O2 -march=armv8.2-a+sve -msve-vector-bits=256" } */
3 
4 #include <stdint.h>
5 
6 typedef int16_t vnx8hi __attribute__((vector_size(32)));
7 
8 vnx8hi
foo(vnx8hi x,vnx8hi y)9 foo (vnx8hi x, vnx8hi y)
10 {
11   return (vnx8hi) { -1, 0, 0, -1, -1, -1, 0, 0,
12 		    -1, -1, -1, -1, 0, 0, 0, 0 } ? x : y;
13 }
14 
15 /* { dg-final { scan-assembler {\tldr\tp[0-9]+,} } } */
16 /* { dg-final { scan-assembler {\t\.byte\t65\n\t\.byte\t5\n\t\.byte\t85\n\t\.byte\t0\n} } } */
17