blob: 5b5d88ad521ef9d58549c116c1d724e2bde497cf [file] [log] [blame]
/* { dg-do compile } */
/* Pick an arbitrary target for which unaligned accesses are more
expensive. */
/* { dg-options "-Ofast -msve-vector-bits=256 -mtune=thunderx -fno-vect-cost-model" } */
#define START 1
#define END 505
void __attribute__((noinline, noclone))
foo (double *x)
{
double v = 10.0;
for (unsigned int i = START; i < END; ++i)
{
x[i] = v;
v += 5.0;
}
}
/* We should operate on aligned vectors. */
/* { dg-final { scan-assembler {\tubfx\t} } } */