Hi James and Kyrill, Thanks for the review and comments on the patch.
>> On ILP32 systems this would still use the SImode patterns,
>> so I suggest you use __builtin_popcountll and
>> an unsigned long long return type to ensure you always exercise the 64-bit
>> code.
Sorry for not commenting on this part.
The issue is that code generates "__popcountdi2" for all the codes in testcase
for LP64 and ILP32 variants.
__builtin_popcount, __builtin_popcountl and __builtin_popcount.
Hence, modified the patch to check for "popcount".
Bootstrapped and regression tested on AArch64-Thunderx-Linux machine.
Please find attached the modified patch and let us know if its okay?
Thanks,
Naveen
popcount-2.patch
Description: popcount-2.patch
