From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from terminus.zytor.com ([198.137.202.10]:39508 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752894Ab0BWRjB (ORCPT ); Tue, 23 Feb 2010 12:39:01 -0500 Message-ID: <4B84118C.90203@zytor.com> Date: Tue, 23 Feb 2010 09:34:04 -0800 From: "H. Peter Anvin" MIME-Version: 1.0 Subject: Re: [PATCH] x86: Add optimized popcnt variants References: <4B7C29C1.10906@suse.cz> <20100218061923.GA1594@liondog.tnic> <20100219142205.GA32533@aftab> <4B7EB6EF.9010405@zytor.com> <20100219164512.GA492@aftab> <4B7EC20C.30607@zytor.com> <20100222141737.GB21233@aftab> <4B82BD01.3030008@zytor.com> <20100222184945.GD21233@aftab> <4B82E144.1050007@zytor.com> <20100223155852.GF30382@aftab> In-Reply-To: <20100223155852.GF30382@aftab> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Borislav Petkov Cc: Michal Marek , linux-kbuild , Peter Zijlstra , Andrew Morton , Wu Fengguang , LKML , Jamie Lokier , Roland Dreier , Al Viro , "linux-fsdevel@vger.kernel.org" , Ingo Molnar , Brian Gerst On 02/23/2010 07:58 AM, Borislav Petkov wrote: > > Hmm, we cannot do that with the current design since __arch_hweight64 > is being inlined into every callsite and AFAICT we would have to build > every callsite with "-fcall-saved-rdi" which is clearly too much. The > explicit "=D" dummy constraint is straightforward, instead. > Uh... the -fcall-saved-rdi would go with all the other ones. Assuming it can actually work and that gcc doesn't choke on an inbound argument being saved. -hpa