diff --git a/tests/tcctest.c b/tests/tcctest.c index 6ae5a77..570cff2 100644 --- a/tests/tcctest.c +++ b/tests/tcctest.c @@ -3875,9 +3875,11 @@ static void builtin_test_bits(unsigned long long x, int cnt[]) if ((unsigned long) x) cnt[7] += __builtin_ctzl(x); if ((unsigned long long) x) cnt[8] += __builtin_ctzll(x); +#if !defined(__clang__) || GCC_MAJOR >= 11 cnt[9] += __builtin_clrsb(x); cnt[10] += __builtin_clrsbl(x); cnt[11] += __builtin_clrsbll(x); +#endif cnt[12] += __builtin_popcount(x); cnt[13] += __builtin_popcountl(x);