Debian Codegraph @

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

raw
1 /* { dg-options "-O3 -mtune=neoverse-v1" } */
2
3 int
4 f11 (short *restrict x, int n)
5 {
6 short res = 0;
7 for (int i = 0; i < n; ++i)
8 res += x[i];
9 return res;
10 }
11
12 /* We should use SVE rather than Advanced SIMD. */
13 /* { dg-final { scan-assembler {\tld1h\tz[0-9]+\.h,} } } */
14 /* { dg-final { scan-assembler {\tadd\tz[0-9]+\.h,} } } */
15 /* { dg-final { scan-assembler-not {\tldr\tq[0-9]+,} } } */
16 /* { dg-final { scan-assembler-not {\tv[0-9]+\.8h,} } } */