diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/aarch64/sve_gather_load_11.c')
-rw-r--r-- | gcc/testsuite/gcc.target/aarch64/sve_gather_load_11.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/aarch64/sve_gather_load_11.c b/gcc/testsuite/gcc.target/aarch64/sve_gather_load_11.c new file mode 100644 index 00000000000..d8a85396eb4 --- /dev/null +++ b/gcc/testsuite/gcc.target/aarch64/sve_gather_load_11.c @@ -0,0 +1,14 @@ +/* { dg-do assemble } */ +/* { dg-options "-O3 -march=armv8-a+sve --save-temps" } */ + +void +f (double *restrict a, double *restrict b, short *c, int *d, int n) +{ + for (int i = 0; i < n; i++) + a[i] = b[c[i] + d[i]]; +} + +/* { dg-final { scan-assembler-times {\tld1h\tz[0-9]+.h,} 1 } } */ +/* { dg-final { scan-assembler-times {\tld1w\tz[0-9]+.s,} 2 } } */ +/* { dg-final { scan-assembler-times {\tld1d\tz[0-9]+.d,} 4 } } */ +/* { dg-final { scan-assembler-times {\tst1d\tz[0-9]+.d,} 4 } } */ |