gcc/testsuite/gcc.target/aarch64/neoverse_v1_1.c
raw| 1 | /* { dg-options "-O2 -mcpu=neoverse-v1" } */ |
| 2 | |
| 3 | void |
| 4 | foo (short *restrict x, short y[restrict][128]) |
| 5 | { |
| 6 | for (int i = 0; i < 128; ++i) |
| 7 | { |
| 8 | y[0][i] = x[i * 3 + 0]; |
| 9 | y[1][i] = x[i * 3 + 1]; |
| 10 | y[2][i] = x[i * 3 + 2]; |
| 11 | } |
| 12 | } |
| 13 | |
| 14 | /* This shouldn't be a post-increment. */ |
| 15 | /* { dg-final { scan-assembler {ld3\t{[^{}]*}, \[x[0-9]+\]\n} } } */ |