1 /* { dg-require-effective-target vect_int } */
11 signed short X
[N
] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
)));
12 signed short Y
[N
] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
)));
13 unsigned char CX
[N
] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
)));
15 __attribute__ ((noinline
)) void
21 for (i
=0; i
<len
; i
++) {
22 result1
+= (X
[i
] * Y
[i
]);
41 __asm__
volatile ("");
49 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_sdot_hi } } } */
50 /* { dg-final { cleanup-tree-dump "vect" } } */