1  /* PR tree-optimization/95771 */
       2  /* { dg-do compile } */
       3  /* { dg-require-effective-target int128 } */
       4  /* { dg-options "-O2 -mpopcnt -fdump-tree-optimized" } */
       5  /* { dg-final { scan-tree-dump " = __builtin_popcount| = \\.POPCOUNT" "optimized" } } */
       6  
       7  int
       8  corge (unsigned __int128 x)
       9  {
      10    int i = 0;
      11    while (x)
      12      {
      13        x &= x - 1;
      14        ++i;
      15      }
      16    return i;
      17  }