Debian Codegraph @

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

raw
1 /* { dg-options "-O3 -mtune=neoverse-v1" } */
2
3 #include <stdint.h>
4
5 uint64_t f2(uint64_t *ptr, int n) {
6 uint64_t res = 0;
7 for (int i = 0; i < n; ++i)
8 res += ptr[i];
9 return res;
10 }
11
12 /* { dg-final { scan-assembler-times {\tld1d\tz[0-9]+\.d,} 5 } } */
13 /* { dg-final { scan-assembler-times {\tadd\tz[0-9]+\.d,} 8 } } */