1 /* { dg-require-effective-target vect_int } */
8 unsigned char uX[N] __attribute__ ((__aligned__(16)));
9 unsigned short uresult[N];
10 signed char X[N] __attribute__ ((__aligned__(16)));
13 /* Unsigned type promotion (qi->hi) */
18 for (i=0; i<len; i++) {
19 uresult[i] = (unsigned short)uX[i];
23 /* Signed type promotion (qi->hi) */
28 for (i=0; i<len; i++) {
29 result[i] = (short)X[i];
47 if (uresult[i] != (unsigned short)uX[i])
54 if (result[i] != (short)X[i])
61 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" { target vect_unpack } } } */
62 /* { dg-final { cleanup-tree-dump "vect" } } */