tests/tcctest.c: Add support for osx with clang 10
This commit is contained in:
parent
e21523529b
commit
95aab7d687
1 changed files with 3 additions and 0 deletions
|
@ -3875,9 +3875,12 @@ 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 CC_NAME != CC_clang || GCC_MAJOR >= 11
|
||||
/* Apple clang 10 does not have __builtin_clrsb[l[l]] */
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue