gcc/testsuite/gcc.target/aarch64/sve/pfalse-prefetch.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-require-effective-target elf } */ |
| 3 | /* { dg-options "-O2 -funwind-tables" } */ |
| 4 | |
| 5 | #include <arm_sve.h> |
| 6 | |
| 7 | #define T(F) \ |
| 8 | void F##_f (const void *base) \ |
| 9 | { \ |
| 10 | return sv##F (svpfalse_b (), base, 0); \ |
| 11 | } |
| 12 | |
| 13 | #define ALL_PREFETCH \ |
| 14 | T (prfb) \ |
| 15 | T (prfh) \ |
| 16 | T (prfw) \ |
| 17 | T (prfd) |
| 18 | |
| 19 | ALL_PREFETCH |
| 20 | |
| 21 | /* { dg-final { scan-assembler-times {\t.cfi_startproc\n\tret\n} 4 } } */ |
| 22 | /* { dg-final { scan-assembler-times {\t.cfi_startproc\n} 4 } } */ |