1  /* { dg-compile } */
       2  
       3  unsigned int ui;
       4  unsigned long ul;
       5  unsigned long long ull;
       6  
       7  int
       8  f1 ()
       9  {
      10    return __builtin_popcount (ui);
      11  }
      12  
      13  int
      14  f2 ()
      15  {
      16    return __builtin_popcountl (ul);
      17  }
      18  
      19  int
      20  f3 ()
      21  {
      22    return __builtin_popcountll (ull);
      23  }
      24  
      25  /* { dg-final { scan-assembler-times "popcnt\t%r2,%r2,8" 3 } } */