1  /* { dg-options "-O3 -mdejagnu-cpu=power8" } */
       2  
       3  /* Check vectorizer can exploit vector rotation instructions on Power8, mainly
       4     for the case rotation count isn't const number.
       5  
       6     Check for vrld which is available on Power8 and above.  */
       7  
       8  #define N 256
       9  unsigned long long sud[N], rud[N];
      10  extern unsigned char rot_cnt;
      11  
      12  void
      13  testULL ()
      14  {
      15    for (int i = 0; i < 256; ++i)
      16      rud[i] = (sud[i] >> rot_cnt) | (sud[i] << (sizeof (sud[0]) * 8 - rot_cnt));
      17  }
      18  
      19  /* { dg-final { scan-assembler {\mvrld\M} } } */