Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve/cost_model_15.c

raw
1 /* { dg-options "-Ofast -mtune=neoverse-v1" } */
2
3 double f(double *restrict x, double *restrict y, int *restrict z)
4 {
5 double res = 0.0;
6 for (int i = 0; i < 100; ++i)
7 res += x[i] * y[z[i]];
8 return res;
9 }
10
11 /* { dg-final { scan-assembler-times {\tld1sw\tz[0-9]+\.d,} 1 } } */
12 /* { dg-final { scan-assembler-times {\tld1d\tz[0-9]+\.d,} 2 } } */
13 /* { dg-final { scan-assembler-times {\tfmla\tz[0-9]+\.d,} 1 } } */