Add support for conditional reductions using SVE CLASTB
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / sve / peel_ind_3.c
blob8364dc6107ad89bfdbf2e595e087172dca472c31
1 /* { dg-do compile } */
2 /* Pick an arbitrary target for which unaligned accesses are more
3 expensive. */
4 /* { dg-options "-O3 -msve-vector-bits=256 -mtune=thunderx" } */
6 #define N 32
7 #define MAX_START 8
8 #define COUNT 16
10 int x[MAX_START][N] __attribute__((aligned(32)));
12 void __attribute__((noinline, noclone))
13 foo (int start)
15 for (int i = start; i < start + COUNT; ++i)
16 x[start][i] = i;
19 /* We should operate on aligned vectors. */
20 /* { dg-final { scan-assembler {\tadrp\tx[0-9]+, x\n} } } */
21 /* { dg-final { scan-assembler {\tubfx\t} } } */