Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/vect-prefetch-drop.c

raw
1 /* { dg-do compile { target { aarch64*-*-* } } } */
2 /* { dg-additional-options "-O3 -march=armv9.2-a+sve --std=c99" { target { aarch64*-*-* } } } */
3
4 void foo(double * restrict a, double * restrict b, int n){
5 int i;
6 for(i=0; i<n; ++i){
7 a[i] = a[i] + b[i];
8 __builtin_prefetch(&(b[i+8]));
9 }
10 }
11
12 /* { dg-final { scan-assembler-not "prfm" } } */
13 /* { dg-final { scan-assembler "fadd\tz\[0-9\]+.d, p\[0-9\]+/m, z\[0-9\]+.d, z\[0-9\]+.d" } } */