blob: 8443fc0000e3463c4f8926ae8e3a3130754cf8f4 [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 3: Trailing same element. */
#include <stdint.h>
typedef int32_t vnx4si __attribute__((vector_size (32)));
/*
** foo:
** mov (z[0-9]+\.s), w2
** insr \1, w1
** insr \1, w0
** rev \1, \1
** ...
*/
__attribute__((noipa))
vnx4si foo(int a, int b, int c)
{
return (vnx4si) { c, c, c, c, c, c, b, a };
}