Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2237983ybi; Sun, 28 Jul 2019 04:52:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqwf9bZyTlUSdYXzvm6mnEwL5dypTmGWQHKBsF/DzFWe25/b/TZ9uIo1kC7H42OHlPtrwwGQ X-Received: by 2002:a65:6104:: with SMTP id z4mr61850837pgu.27.1564314756946; Sun, 28 Jul 2019 04:52:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564314756; cv=none; d=google.com; s=arc-20160816; b=KoluEQnU4gwvSFgBWkH/7286NJQ/6VoDeBjaOOnrLyQRGy5xe/y462Ro63PvafZPlb qlCFCifRfcysZK2+cscyn/9rRMR9ZjE8VD2TteV8ndPfsoPJfKKAvlG7oVEMt5uFT6/P MbnY6EqmtwPpGwcZie8/E6lUVHQXODH8pjxwPhYXuAHJnkQGPYxrKIhEak2m2u8LM9Wu v+thkdbDLD+rvagvBlkkJfUy8qB0CSwFZD4lD4VDz+EF9ibVgCy3r4XAbnz9jIU5qpE2 JaBsjqB/EIXhiobM08UPrtThJS4DoBfLj+iFy3nH6SM5Cy83HJ8wR8EDqJmd5LDFPW16 AoNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=GZSQr/7XGRdedaNZsaOtEAo1JYrfvhe9geQhL0fqUE4=; b=Sv873gDnAqz/EUbKY9DTxAIdLxi1136Wf/N/sBKjN399pY7llvPn6DLde+SWb1tpIP ZNb4Rm/Ng74pXTspGfECkyc0y3RXsefOd85y/rwn3U8tPrimQVQuxCkdGo1j6J/0GHeR HZIZOjMOZhtsxiO5Q7gAXz55uymO31gY15PC2785175UMJ+N8YQcXd84LR6eU0Xk2zRS BMOl1oCnhUaHQ16kDE71f+qM54trtRqNqOaSJvVjojM5hmghWhyHntgwx9fu5i2ZNO48 Tj6vSQ4A9xsZxuhvqA/jm9keY07j839x02tvcM2HrBO1snoK392yUnp6bfeluxYLyctH sgOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hZlpWLHs; 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 a9si25169370pfn.104.2019.07.28.04.52.20; Sun, 28 Jul 2019 04:52:36 -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=hZlpWLHs; 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 S1726027AbfG1Lvp (ORCPT + 99 others); Sun, 28 Jul 2019 07:51:45 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:51639 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725983AbfG1Lvp (ORCPT ); Sun, 28 Jul 2019 07:51:45 -0400 Received: by mail-wm1-f65.google.com with SMTP id 207so51463955wma.1 for ; Sun, 28 Jul 2019 04:51:43 -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:mime-version:content-disposition :user-agent; bh=GZSQr/7XGRdedaNZsaOtEAo1JYrfvhe9geQhL0fqUE4=; b=hZlpWLHsdscUKU9xSQ2wjcGPgu+N1JZi5+/fnp9fGewhBzGlCxA+zJ71aEPp05Blqo smVcJ7BJPqyNp0Eh0O0h/V/T2nsRhl773AEsaDPToInoos8FVB6MWxZbaY2lgPzJ8k+1 Ujp6fc5tnPcpuqThpdJVUBTb/W/b7eRubqoJBaluldpQAZt+J54ceIagI6Jx7b1sZfTJ oRRhJz+DXfGC/EdHVgPpDV/rOI+YlqBWOPl0H/L/RkbzsU/wvM3exsM82N2gmgF1r0lb l0M5JHmV71iIKHEe8iKSWw4H5J8dnaYofmJUO886MVrdiL7eGHV8eZeGFGRZZPM0zp4k kgEA== 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:mime-version :content-disposition:user-agent; bh=GZSQr/7XGRdedaNZsaOtEAo1JYrfvhe9geQhL0fqUE4=; b=CUtwjobhFO4yw16JEIrcKNByzLAxOHR3i4MOaz1MKNeqNE6F1fYb13qQM2BofUdNu2 6hydwtcHR3VZkTVHbi8iGvzb8CzdAVrSayiNfL8s7zezCst2cbxsZioZYw6sUHmLZl/k fOuQwumdYSMN/teBItAZZ9+Gz0MiRf3+kW3sEF67aPiFRdOUwB/h0aLNQUr8O9wr3Mvm pAVHLk18hpLy8jicCwMo8WwcSwcfiqf31aiO8BlIVuPuGgHX4GfvfT7QvseObwiP5Ay5 1kCWpb6SIwa1tTzdh4cpPilX9TmT8ir2RFhJ+UKsIHh6T0Cs3Hk85Cp6pnP3Hyl0bBWm LqdQ== X-Gm-Message-State: APjAAAUwIx7AZPDPH/NNACli3clNx9l9x2pQ1tfzu6gHwdBnwzl3+m0k ODnaCtsDo4VVq907Ef7hpEwI84A= X-Received: by 2002:a1c:f914:: with SMTP id x20mr16585263wmh.142.1564314703389; Sun, 28 Jul 2019 04:51:43 -0700 (PDT) Received: from avx2 ([46.53.254.41]) by smtp.gmail.com with ESMTPSA id b8sm75875640wmh.46.2019.07.28.04.51.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Jul 2019 04:51:42 -0700 (PDT) Date: Sun, 28 Jul 2019 14:51:40 +0300 From: Alexey Dobriyan To: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com Cc: x86@kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] x86: drop REG_OUT macro from hweight functions Message-ID: <20190728115140.GA32463@avx2> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline 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 Output register is always RAX/EAX. Signed-off-by: Alexey Dobriyan --- arch/x86/include/asm/arch_hweight.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) --- a/arch/x86/include/asm/arch_hweight.h +++ b/arch/x86/include/asm/arch_hweight.h @@ -6,10 +6,8 @@ #ifdef CONFIG_64BIT #define REG_IN "D" -#define REG_OUT "a" #else #define REG_IN "a" -#define REG_OUT "a" #endif static __always_inline unsigned int __arch_hweight32(unsigned int w) @@ -17,7 +15,7 @@ static __always_inline unsigned int __arch_hweight32(unsigned int w) unsigned int res; asm (ALTERNATIVE("call __sw_hweight32", "popcntl %1, %0", X86_FEATURE_POPCNT) - : "="REG_OUT (res) + : "=a" (res) : REG_IN (w)); return res; @@ -45,7 +43,7 @@ static __always_inline unsigned long __arch_hweight64(__u64 w) unsigned long res; asm (ALTERNATIVE("call __sw_hweight64", "popcntq %1, %0", X86_FEATURE_POPCNT) - : "="REG_OUT (res) + : "=a" (res) : REG_IN (w)); return res;