gcc/testsuite/gcc.target/aarch64/sve/cost_model_1.c
raw| 1 | /* { dg-options "-O2 -ftree-vectorize" } */ |
| 2 | |
| 3 | void |
| 4 | f (unsigned int *restrict x, unsigned int *restrict y, |
| 5 | unsigned char *restrict z, unsigned int n) |
| 6 | { |
| 7 | for (unsigned int i = 0; i < n % 4; ++i) |
| 8 | x[i] = x[i] + y[i] + z[i]; |
| 9 | } |
| 10 | |
| 11 | /* { dg-final { scan-assembler {\tld1b\tz[0-9]+\.s, p[0-7]/z, \[x2\]\n} } } */ |