1 /* { dg-require-effective-target vect_int } */
8 unsigned short X[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
9 unsigned short Y[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
10 unsigned int result[N];
12 /* unsigned short->unsigned int widening-mult. */
13 __attribute__ ((noinline)) int
17 for (i=0; i<len; i++) {
18 result[i] = (unsigned int)(X[i] * Y[i]);
31 __asm__ volatile ("");
37 if (result[i] != X[i] * Y[i])
44 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { vect_widen_mult_hi_to_si || vect_unpack } } } } */
45 /* { dg-final { scan-tree-dump-times "vect_recog_widen_mult_pattern: detected" 1 "vect" { target vect_widen_mult_hi_to_si_pattern } } } */
46 /* { dg-final { scan-tree-dump-times "pattern recognized" 1 "vect" { target vect_widen_mult_hi_to_si_pattern } } } */
47 /* { dg-final { cleanup-tree-dump "vect" } } */