Re: [RFC PATCH] x86/hweight: Get rid of the special calling convention

From: H. Peter Anvin
Date: Wed May 04 2016 - 16:52:26 EST


On 05/04/2016 01:22 PM, Borislav Petkov wrote:
> On Wed, May 04, 2016 at 12:49:17PM -0700, H. Peter Anvin wrote:
>> Sigh. Doesn't look like -Wa is going to help due to the lack of the
>> equivalent of an -include option in gas.
>
> So much for the register "freedom" - I'll resurrect the hardcoded insn
> bytes. :-\
>
> Unless my gcc friends have some other ideas...

There is the option of looking for assembler support for popcnt and only
hard-code the register if not supported. This is where being able to
insert a macro package would help...

-hpa