blob: 72038c4e28100947b571775e1447e04c9d52e39e [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-march=rv32gc_xtheadbb" { target { rv32 } } } */
/* { dg-options "-march=rv64gc_xtheadbb" { target { rv64 } } } */
/* { dg-skip-if "" { *-*-* } { "-O0" "-Os" "-Og" } } */
int
foo (unsigned long a)
{
return __builtin_clzl (a);
}
int
bar (unsigned long a)
{
return __builtin_ctzl (a);
}
/* { dg-final { scan-assembler-times "th.ff1\t" 2 } } */