blob: 6ab089522fb12ceefc3faf96ee435c0efdc1a33a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/* { dg-do compile } */
/* Pick an arbitrary target for which unaligned accesses are more
expensive. */
/* { dg-options "-Ofast -march=armv8-a+sve -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} } } */
|