1 /* { dg-do assemble { target aarch64_asm_sve_ok } } */
2 /* { dg-options "-O2 -ftree-vectorize --save-temps" } */
7 #define INDEX32 int32_t
8 #define INDEX64 int64_t
11 #define TEST_LOOP(DATA_TYPE, BITS) \
12 void __attribute__ ((noinline, noclone)) \
13 f_##DATA_TYPE (DATA_TYPE *restrict dest, DATA_TYPE *restrict src, \
14 INDEX##BITS *indices, int n) \
16 for (int i = 9; i < n; ++i) \
17 dest[indices[i]] = src[i] + 1; \
30 /* { dg-final { scan-assembler-times {\tst1w\tz[0-9]+\.s, p[0-7], \[x[0-9]+, z[0-9]+.s, sxtw 2\]\n} 3 } } */
31 /* { dg-final { scan-assembler-times {\tst1d\tz[0-9]+\.d, p[0-7], \[x[0-9]+, z[0-9]+.d, lsl 3\]\n} 3 } } */