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  /* Even with SSE2 we should only generate one IV for the induction.  */
      24  /* { dg-final { scan-tree-dump-times "# vect_vec_iv" 1 "vect" } } */
      25  /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */