1 /* { dg-require-effective-target vect_int } */
2 /* { dg-require-effective-target vect_shift } */
10 /* Modified rgb to rgb conversion from FFmpeg. */
11 __attribute__ ((noinline)) void
12 foo (unsigned char *src, unsigned char *dst)
14 unsigned char *s = src;
18 for (i = 0; i < N/4; i++)
24 *d = ((b>>3) | ((g&0xFC)<<3) | ((r&0xF8)<<8) | (a>>5));
30 for (i = 0; i < N/4; i++)
36 if (*d != ((b>>3) | ((g&0xFC)<<3) | ((r&0xF8)<<8) | (a>>5)))
45 unsigned char in[N], out[N];
49 for (i = 0; i < N; i++)
53 __asm__ volatile ("");
61 /* Final value stays in int, so no over-widening is detected at the moment. */
62 /* { dg-final { scan-tree-dump-times "vect_recog_over_widening_pattern: detected" 0 "vect" } } */
63 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
64 /* { dg-final { cleanup-tree-dump "vect" } } */