1 /* { dg-require-effective-target vect_int } */
9 signed short X
[N
] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
)));
10 signed int Y
[N
] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
)));
12 /* (short, int)->int->int dot product.
13 Not detected as a dot-product pattern. */
15 __attribute__ ((noinline
)) int
21 for (i
= 0; i
< len
; i
++)
23 result
+= (X
[i
] * Y
[i
]);
29 /* (int, short)->int->int dot product.
30 Not detected as a dot-product pattern. */
32 __attribute__ ((noinline
)) int
38 for (i
= 0; i
< len
; i
++)
40 result
+= (Y
[i
] * X
[i
]);
53 for (i
= 0; i
< N
; i
++)
57 __asm__
volatile ("");
71 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" { target vect_unpack } } } */