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)));
17 for (i
=0; i
<len
; i
++) {
18 uresult
[i
] = (unsigned short)uX
[i
];
26 for (i
=0; i
<len
; i
++) {
27 result
[i
] = (short)X
[i
];
45 if (uresult
[i
] != (unsigned short)uX
[i
])
52 if (result
[i
] != (short)X
[i
])
59 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" { target powerpc*-*-* } } } */
60 /* { dg-final { cleanup-tree-dump "vect" } } */