gcc/testsuite/gcc.target/aarch64/sve/pr99873_1.c
raw| 1 | /* { dg-options "-O3" } */ |
| 2 | |
| 3 | void |
| 4 | f (int *restrict x, int *restrict y, int *restrict z, int n) |
| 5 | { |
| 6 | for (int i = 0; i < n; i += 3) |
| 7 | { |
| 8 | x[i] = y[i] + z[i]; |
| 9 | x[i + 1] = y[i + 1] - z[i + 1]; |
| 10 | x[i + 2] = y[i + 2] | z[i + 2]; |
| 11 | } |
| 12 | } |
| 13 | |
| 14 | /* { dg-final { scan-assembler-times {\tld3w\t} 2 } } */ |
| 15 | /* { dg-final { scan-assembler-times {\tst3w\t} 1 } } */ |