1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-vectorize" } */
7 f (uint8_t *restrict a
, uint8_t *restrict b
)
9 for (int i
= 0; i
< 100; ++i
)
11 a
[i
* 8] = b
[i
* 8 + 1] + 1;
12 a
[i
* 8 + 1] = b
[i
* 8 + 7] + 2;
13 a
[i
* 8 + 2] = b
[i
* 8 + 1] + 3;
14 a
[i
* 8 + 3] = b
[i
* 8 + 7] + 4;
15 a
[i
* 8 + 4] = b
[i
* 8 + 1] + 5;
16 a
[i
* 8 + 5] = b
[i
* 8 + 7] + 6;
17 a
[i
* 8 + 6] = b
[i
* 8 + 1] + 7;
18 a
[i
* 8 + 7] = b
[i
* 8 + 7] + 8;
22 /* { dg-final { scan-assembler {\ttbl\tz[0-9]+\.b, z[0-9]+\.b, z[0-9]+\.b\n} } } */