Re: [PATCH 2/5] -march=native: POPCNT support

2017-12-08 Thread Alexey Dobriyan
On 12/8/17, H. Peter Anvin wrote: > On 12/07/17 14:41, Alexey Dobriyan wrote: >> Mainline kernel can only generate "popcnt rax, rdi" instruction >> with alternative masquareading as function call. Patch allows >> to generate all POPCNT variations and inlines hweigth*() family of

Re: [PATCH 2/5] -march=native: POPCNT support

2017-12-08 Thread Alexey Dobriyan
On 12/8/17, H. Peter Anvin wrote: > On 12/07/17 14:41, Alexey Dobriyan wrote: >> Mainline kernel can only generate "popcnt rax, rdi" instruction >> with alternative masquareading as function call. Patch allows >> to generate all POPCNT variations and inlines hweigth*() family of >> functions. >

Re: [PATCH 2/5] -march=native: POPCNT support

2017-12-07 Thread H. Peter Anvin
On 12/07/17 14:41, Alexey Dobriyan wrote: > Mainline kernel can only generate "popcnt rax, rdi" instruction > with alternative masquareading as function call. Patch allows > to generate all POPCNT variations and inlines hweigth*() family of functions. > > $ objdump -dr ../obj/vmlinux |

Re: [PATCH 2/5] -march=native: POPCNT support

2017-12-07 Thread H. Peter Anvin
On 12/07/17 14:41, Alexey Dobriyan wrote: > Mainline kernel can only generate "popcnt rax, rdi" instruction > with alternative masquareading as function call. Patch allows > to generate all POPCNT variations and inlines hweigth*() family of functions. > > $ objdump -dr ../obj/vmlinux |

[PATCH 2/5] -march=native: POPCNT support

2017-12-07 Thread Alexey Dobriyan
Mainline kernel can only generate "popcnt rax, rdi" instruction with alternative masquareading as function call. Patch allows to generate all POPCNT variations and inlines hweigth*() family of functions. $ objdump -dr ../obj/vmlinux | grep popcnt 81004f6d: f3 48 0f

[PATCH 2/5] -march=native: POPCNT support

2017-12-07 Thread Alexey Dobriyan
Mainline kernel can only generate "popcnt rax, rdi" instruction with alternative masquareading as function call. Patch allows to generate all POPCNT variations and inlines hweigth*() family of functions. $ objdump -dr ../obj/vmlinux | grep popcnt 81004f6d: f3 48 0f