1 /* { dg-require-effective-target vect_int } */
7 #define DOT16( a, b) ( a[0]*b[0] + a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + \
8 a[4]*b[4] + a[5]*b[5] + a[6]*b[6] + a[7]*b[7] + \
9 a[8]*b[8] + a[9]*b[9] + a[10]*b[10] + a[11]*b[11] + \
10 a[12]*b[12] + a[13]*b[13] + a[14]*b[14] + a[15]*b[15])
12 __attribute__ ((noinline
))
13 int main1 (int ia
[][N
])
16 int ib
[N
] = {0,3,6,9};
19 for (i
= 0; i
< N
; i
++)
21 ic
[0][i
] = DOT16 (ia
[i
], ib
);
25 for (i
= 0; i
< N
; i
++)
27 if (ic
[0][i
] != DOT16 (ia
[i
], ib
))
38 for (i
= 0; i
< N
; i
++)
39 for (j
= 0; j
< N
; j
++)
42 asm volatile ("" ::: "memory");
50 /* Needs interleaving support. */
51 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_strided4 } } } */
52 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 0 "vect" { xfail vect_strided4 } } } */