2017-09-26 Thomas Koenig <tkoenig@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr64406.c
blob8af8e557770e3725e4735e9431a9106788e9aaad
1 /* { dg-do compile } */
2 /* { dg-options "-O -ftree-loop-distribute-patterns -fno-tree-loop-ivcanon -fno-tree-loop-vectorize -ftree-vectorize" } */
4 unsigned in[72];
6 void bar (unsigned out[], unsigned ia[]);
8 void
9 foo ()
11 int i;
12 unsigned out[72], ia[8];
13 for (i = 0; i < 8; i++)
15 out[i * 8] = in[i * 8] + 5;
16 out[i * 8 + 1] = in[i * 8 + 1] + 6;
17 out[i * 8 + 2] = in[i * 8 + 2] + 7;
18 out[i * 8 + 3] = in[i * 8 + 3] + 8;
19 out[i * 8 + 4] = in[i * 8 + 4] + 9;
20 out[i * 8 + 5] = in[i * 8 + 5] + 10;
21 out[i * 8 + 6] = in[i * 8 + 6] + 11;
22 out[i * 8 + 7] = in[i * 8 + 7] + 12;
23 ia[i] = in[i];
25 bar (out, ia);