OSDN Git Service

PR tree-optimization/30843
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / vect / pr30843.c
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_long } */
3
4 #include <stdarg.h>
5 #include "tree-vect.h"
6
7 #define N 16
8
9 void dacP98FillRGBMap (unsigned char *pBuffer)
10 {
11     unsigned long dw, dw1;
12     unsigned long *pdw = (unsigned long *)(pBuffer);
13
14     for( dw = 256, dw1 = 0; dw; dw--, dw1 += 0x01010101) 
15     {
16        *pdw++ = dw1;
17        *pdw++ = dw1;
18        *pdw++ = dw1;
19        *pdw++ = dw1;
20     }
21 }
22
23 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { vect_interleave } } } } */
24 /* { dg-final { cleanup-tree-dump "vect" } } */
25