aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/stp_vec_128_1.c
blob: 7d8d54ebb8c7af6bcbde3e6ff9d3cb97ab293f1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */
/* { dg-options "-Ofast -moverride=tune=none" } */


typedef int int32x4_t __attribute__ ((__vector_size__ ((16))));

void
bar (int32x4_t *foo)
{
  int i = 0;
  int32x4_t val = { 3, 2, 5, 1 };

  for (i = 0; i < 256; i+=2)
    {
      foo[i] = val;
      foo[i+1] = val;
    }
}

/* { dg-final { scan-assembler "stp\tq\[0-9\]+, q\[0-9\]" } } */