1 /* { dg-require-effective-target vect_int } */
8 unsigned char X[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
9 unsigned char Y[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
10 unsigned short result[N];
12 /* char->short widening-mult */
13 __attribute__ ((noinline)) int
17 for (i=0; i<len; i++) {
18 result[i] = X[i] * Y[i];
38 if (result[i] != X[i] * Y[i])
45 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { vect_widen_mult_qi_to_hi || vect_unpack } } } } */
46 /* { dg-final { cleanup-tree-dump "vect" } } */