summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/sve_vec_init_2.c
blob: 95b278e58f541394b0609c1feec567ae815b00ec (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-O2 -ftree-vectorize -march=armv8-a+sve -msve-vector-bits=256" } */

typedef unsigned int vnx4si __attribute__ ((vector_size(32)));

void
f (vnx4si *ptr, int x)
{
  *ptr += (vnx4si) { x, x, 1, 2, 3, x, x, 4 };
}