1 /* Disabling epilogues until we find a better way to deal with scans. */
2 /* { dg-additional-options "--param vect-epilogues-nomask=0" } */
3 /* { dg-require-effective-target vect_int } */
12 unsigned short X
[N
] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
)));
13 unsigned short Y
[N
] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
)));
15 /* ushort->int->uint dot product: the multiplication promotes the ushorts
16 to int, and then the product is converted to uint for the addition. */
17 __attribute__ ((noinline
)) unsigned int
20 unsigned int result
= 0;
22 for (i
=0; i
<len
; i
++) {
23 result
+= (X
[i
] * Y
[i
]);
39 __asm__
volatile ("");
49 /* { dg-final { scan-tree-dump-times "vect_recog_dot_prod_pattern: detected(?:(?!Analysis failed).)*Analysis succeeded" 1 "vect" { target { vect_pack_trunc || vect_udot_hi } } } } */
51 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { vect_pack_trunc || vect_udot_hi } } } } */