1 /* { dg-do compile } */
2 /* { dg-additional-options "-ftree-slp-vectorize" } */
3
4 int ai[2][8];
5 void bar (int *);
6 void
br(void)7 br (void)
8 {
9 int qp[9];
10 bar (qp);
11 ai[0][0] = qp[0] + qp[1] + 1 >> 1;
12 ai[0][1] = qp[1] + qp[2] + 1 >> 1;
13 ai[0][2] = qp[2] + qp[3] + 1 >> 1;
14 ai[0][3] = qp[3] + qp[4] + 1 >> 1;
15 ai[0][4] = qp[4] + qp[5] + 1 >> 1;
16 ai[0][5] = qp[5] + qp[6] + 1 >> 1;
17 ai[0][6] = qp[6] + qp[7] + 1 >> 1;
18 ai[0][7] = qp[7] + qp[8] + 1 >> 1;
19 ai[1][0] = qp[0] + qp[1] + 2 * qp[0] + 1 >> 2;
20 ai[1][1] = qp[0] + qp[2] + 2 * qp[1] + 1 >> 2;
21 ai[1][2] = qp[1] + qp[3] + 2 * qp[2] + 1 >> 2;
22 ai[1][3] = qp[2] + qp[4] + 2 * qp[3] + 1 >> 2;
23 ai[1][4] = qp[3] + qp[5] + 2 * qp[4] + 1 >> 2;
24 ai[1][5] = qp[4] + qp[6] + 2 * qp[5] + 1 >> 2;
25 ai[1][6] = qp[5] + qp[7] + 2 * qp[6] + 1 >> 2;
26 ai[1][7] = qp[6] + qp[8] + 2 * qp[7] + 1 >> 2;
27 }
28