blob: 4a418b633f53722c25a2ce3ea148e3c794e5b646 [file] [log] [blame]
/* { dg-do assemble { target aarch64_asm_sve_ok } } */
/* { dg-options "-O -msve-vector-bits=256 --save-temps" } */
/* { dg-final { check-function-bodies "**" "" } } */
/* Case 2.1: Leading constants with stepped sequence. */
#include <stdint.h>
typedef int32_t vnx4si __attribute__((vector_size (32)));
/*
** foo:
** index (z[0-9]+\.s), #6, #-1
** insr \1, w0
** insr \1, w1
** rev \1, \1
** ...
*/
__attribute__((noipa))
vnx4si foo(int a, int b)
{
return (vnx4si) { 1, 2, 3, 4, 5, 6, a, b };
}