1  /* PR tree-optimization/94801 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-O2 -fdump-tree-optimized" } */
       4  /* { dg-final { scan-tree-dump-times "return 0;" 2 "optimized" } } */
       5  
       6  int
       7  foo (int a)
       8  {
       9    return __builtin_clz (a) >> 5;
      10  }
      11  
      12  int
      13  bar (int a)
      14  {
      15    return __builtin_ctz (a) >> 5;
      16  }