Handle peeling for alignment with masking
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / sve / peel_ind_4.c
blob5b5d88ad521ef9d58549c116c1d724e2bde497cf
1 /* { dg-do compile } */
2 /* Pick an arbitrary target for which unaligned accesses are more
3 expensive. */
4 /* { dg-options "-Ofast -msve-vector-bits=256 -mtune=thunderx -fno-vect-cost-model" } */
6 #define START 1
7 #define END 505
9 void __attribute__((noinline, noclone))
10 foo (double *x)
12 double v = 10.0;
13 for (unsigned int i = START; i < END; ++i)
15 x[i] = v;
16 v += 5.0;
20 /* We should operate on aligned vectors. */
21 /* { dg-final { scan-assembler {\tubfx\t} } } */