1  /* PR target/78103 */
       2  /* { dg-do compile { target { ! ia32 } } } */
       3  /* { dg-options "-O2 -mno-lzcnt" } */
       4  /* { dg-final { scan-assembler-not {\mcltq\M} } } */
       5  
       6  long long
       7  foo (long long x)
       8  {
       9    return __builtin_clzll (x);
      10  }
      11  
      12  long long
      13  bar (long long x)
      14  {
      15    return (unsigned int) __builtin_clzll (x);
      16  }
      17  
      18  long long
      19  baz (int x)
      20  {
      21    return __builtin_clz (x);
      22  }
      23  
      24  long long
      25  qux (int x)
      26  {
      27    return (unsigned int) __builtin_clz (x);
      28  }