1  /* { dg-do compile } */
       2  /* { dg-options "-march=rv32gc_xtheadbb" { target { rv32 } } } */
       3  /* { dg-options "-march=rv64gc_xtheadbb" { target { rv64 } } } */
       4  /* { dg-skip-if "" { *-*-* } { "-O0" "-Os" "-Og" } } */
       5  
       6  int
       7  foo (unsigned long a)
       8  {
       9    return __builtin_clzl (a);
      10  }
      11  
      12  int
      13  bar (unsigned long a)
      14  {
      15    return __builtin_ctzl (a);
      16  }
      17  
      18  /* { dg-final { scan-assembler-times "th.ff1\t" 2 } } */