1 /* { dg-do assemble { target aarch64_asm_sve_ok } } */
2 /* { dg-options "-O -msve-vector-bits=256 --save-temps" } */
3 /* { dg-final { check-function-bodies "**" "" } } */
4 
5 /* Case 2.1: Leading constants with stepped sequence.  */
6 
7 #include <stdint.h>
8 
9 typedef int32_t vnx4si __attribute__((vector_size (32)));
10 
11 /*
12 ** foo:
13 **	index	(z[0-9]+\.s), #6, #-1
14 **	insr	\1, w0
15 **	insr	\1, w1
16 **	rev	\1, \1
17 **	...
18 */
19 __attribute__((noipa))
foo(int a,int b)20 vnx4si foo(int a, int b)
21 {
22   return (vnx4si) { 1, 2, 3, 4, 5, 6, a, b };
23 }
24 
25