ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gcc.target/sparc/lzd.c

19 lines
285 B
C

/* { dg-do compile } */
/* { dg-options "-mvis3" } */
int test_clz(int a)
{
return __builtin_clz(a);
}
long test_clzl(long a)
{
return __builtin_clzl(a);
}
long long test_clzll(long long a)
{
return __builtin_clzll(a);
}
/* { dg-final { scan-assembler-times "lzd\t%" 3 } } */