Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3843835ybi; Mon, 29 Jul 2019 13:45:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCotw0EDaaJ02MPTEbERV5hmPe/JiT3ziO98eqTbG3DmTdBPISa9Zn1fhzoqQICMXhqY5F X-Received: by 2002:aa7:9e9a:: with SMTP id p26mr39297354pfq.25.1564433134747; Mon, 29 Jul 2019 13:45:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564433134; cv=none; d=google.com; s=arc-20160816; b=yWDn4PcxvfwULPLmKU1DYkXzoOi1x2j77J7kg+6u0dmAsHR9pqTi9T/7R0J+n+cwXy gZckGiTnMVO535m8475urs/rUv11BF+vCRIoNj42u7LbDOFR4o1FwRl7FqNwx3UImSi1 NPLeuOqzdSGnUiu/2oyARK3IUUwnhauu/QhhggKdhD5PobSZQuh+YJxjnmaz+UEJRb/G LEz/Eafs00R2+nKchtYp/QuGvL0sXPrFFRdhe5uhOU0JXZb+N1oRA9SLLLuDm7p6x9Rq dzxhfjBz/gXr+B+atc0cWZ1cKLeTPbVc63xyC/KEcOoULzPjWa6bUq/kXd7ChI4Dbm5C 2dvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8BgDTStRQ2T9ojuBwzZJrWwy1PINQlgsG1IgU+UHq/8=; b=jTyas95AphbfZuFyFlG5Q8vaue8NKhs4z53xjjmyhzDU2wO/iISebLbA+codHu/5py HWRDT8CBKPhlb6KNgMlPf7ufCvyESErU74TBsJSTNqH/GCVKVFhSBN+ydhyxfEY8nrQG nJqrJ55e/IMJ3Yx8EOyPmVdrBTv6BJAMdNHkh5gItO6KdTh4KhQYvN0U6sjE0iCTw2Ky aMuBYJn0vOqFgiNbDI8k3vALC4gPC3VtEnRpc8Hb5ycQJISlAthy00SOZk84/5WglBwl Ejxt/+CzOFLIXnfF6vcPeAx8qyZyUq+VO5g30YvKGPG0OqwkNITmkx2GPBVyCjuLbO3s AkDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=izBESb+v; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l68si26731121plb.416.2019.07.29.13.45.19; Mon, 29 Jul 2019 13:45:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=izBESb+v; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729471AbfG2UoW (ORCPT + 99 others); Mon, 29 Jul 2019 16:44:22 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:43502 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729446AbfG2UoW (ORCPT ); Mon, 29 Jul 2019 16:44:22 -0400 Received: by mail-wr1-f65.google.com with SMTP id p13so63267387wru.10 for ; Mon, 29 Jul 2019 13:44:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=8BgDTStRQ2T9ojuBwzZJrWwy1PINQlgsG1IgU+UHq/8=; b=izBESb+vdlqc9YqQw8zQSWBpeg0LcX419GMZ27hlXw587xn44e4gX7aZEhTIDFN9DN TfinglKaWl6R0TFKO08VZ1TMaK+nPjjAaLBfMEX3XFSYrpo3899rFifMgMMO2RWstMGQ h87goVbJ9w0GOmNXxk3TydY3FSx6tr9xK3avgS7ZTQPMKgvxOal0qMzJXj16bxZCcD+D otCgkqrfe6zs9FwPAyoO9WjQVnFBkED3hx9t1Qj59zZuzyN3sMKC4gyjuCx/6mc5iC5G u5mMOctmkp8SfFYsqBCsfM/xAEPRf4wCNjQW9RMggqkoGGGoujX/8m0JVaeu+4ZimoRa dDYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=8BgDTStRQ2T9ojuBwzZJrWwy1PINQlgsG1IgU+UHq/8=; b=s9En5/OadcmIc5fWT7COG/TsrCWMJuVpQ+IBZjP3f1yRRmRzJ4VQkeu78OTQlpegpz rM4LW8PdyBQFllCZ23TdTURk+98iAhtybg7F3tPa+Qm2PMpPAzZb2VUwyp+akZajusPr 4/SKK5R5PU2HrGkraU0vb0bpqNbuWOOVPwhyf9hzZ7EqKJd1tlBE43Aqu49jw3h3lWgJ 9Rd9LrH6RNjYzvxIG/pISF6ctYHhTIDZ8U+aB2M1m+7vnp9EllBKBNabs8KMBVL8Qcom EHiXtrPFFUYwKtp5ZG9JnuG8JoN5MSXTXMgfN14ESeulrSIcS+dCmChvm7EZrLVlQaQE m9vQ== X-Gm-Message-State: APjAAAUd4yUCO3MBEixnnSS59UJHpje/3rAEhvHd+XVKBowiDML3/gDY 6hP95NdyE+P/VtNuLGtyCw== X-Received: by 2002:a5d:4484:: with SMTP id j4mr122166110wrq.143.1564433060100; Mon, 29 Jul 2019 13:44:20 -0700 (PDT) Received: from avx2 ([46.53.248.55]) by smtp.gmail.com with ESMTPSA id z1sm69735375wrv.90.2019.07.29.13.44.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jul 2019 13:44:19 -0700 (PDT) Date: Mon, 29 Jul 2019 23:44:17 +0300 From: Alexey Dobriyan To: Peter Zijlstra Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86: drop REG_OUT macro from hweight functions Message-ID: <20190729204417.GA2146@avx2> References: <20190728115140.GA32463@avx2> <20190729094329.GW31381@hirez.programming.kicks-ass.net> <20190729100447.GD31425@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190729100447.GD31425@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 29, 2019 at 12:04:47PM +0200, Peter Zijlstra wrote: > +#define _ASM_ARG1B __ASM_FORM_RAW(dil) > +#define _ASM_ARG2B __ASM_FORM_RAW(sil) > +#define _ASM_ARG3B __ASM_FORM_RAW(dl) > +#define _ASM_ARG4B __ASM_FORM_RAW(cl) > +#define _ASM_ARG5B __ASM_FORM_RAW(r8b) > +#define _ASM_ARG6B __ASM_FORM_RAW(r9b) I preprocessed percpu code once to see what precisely it does because it was easier than wading through forest of macroes. Hopefully x86 assembly won't get to that level.