Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / bb-slp-layout-20.c
blobed7816b3f7b88875789b02db8f1bf7cec2b2a34f
1 /* { dg-do compile } */
2 /* { dg-additional-options "-fno-tree-loop-vectorize" } */
4 extern int a[][4], b[][4], c[][4], d[4], e[4];
5 void f()
7 int t0 = a[0][3];
8 int t1 = a[1][3];
9 int t2 = a[2][3];
10 int t3 = a[3][3];
11 int a0 = 0, a1 = 0, a2 = 0, a3 = 0, b0 = 0, b1 = 0, b2 = 0, b3 = 0;
12 for (int i = 0; i < 400; i += 4)
14 a0 += b[i][3] * t0;
15 a1 += b[i][2] * t1;
16 a2 += b[i][1] * t2;
17 a3 += b[i][0] * t3;
18 b0 += c[i][3] * t0;
19 b1 += c[i][2] * t1;
20 b2 += c[i][1] * t2;
21 b3 += c[i][0] * t3;
23 d[0] = a0;
24 d[1] = a1;
25 d[2] = a2;
26 d[3] = a3;
27 e[0] = b0;
28 e[1] = b1;
29 e[2] = b2;
30 e[3] = b3;
33 /* { dg-final { scan-tree-dump-times "add new stmt: \[^\\n\\r\]* = VEC_PERM_EXPR" 3 "slp1" { target { vect_int_mult && vect_perm } } } } */