1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/* { 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 } } */