Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp237957ybj; Fri, 8 May 2020 10:34:29 -0700 (PDT) X-Google-Smtp-Source: APiQypIRHVGEdARb42sUVvqKGJRi/JiC7ch0mxqmSK7+GmpIvV4/ctwPuyUvE+w0/ZI/JfUV+lO6 X-Received: by 2002:a05:6402:1adc:: with SMTP id ba28mr3173853edb.12.1588959269633; Fri, 08 May 2020 10:34:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588959269; cv=none; d=google.com; s=arc-20160816; b=RtR/+IMScY7PhIKN67T40FCailhUdUymOfIUYF0TJ0xwQv35qmI+0p/HkTTiz4Pb+5 8PpAQFwkMyIPqN0p35GK9zBuNg+YVA2FKXGMsrUijlhdwQqi1oGnsHwiv8BgeuKwYy3t 30tdWyX+QHRTEssGU1NtmyP8EjILHlHPwfZJgebvxDMSJD1RVVaOSRvb2nqHqHKYaStc a2SAqHPsXtVZLcOJWTrr5VClb0Gu4EJKGok1HBcLb719eEmkh/luhWF01TsLBp7R4QHu Hq8wfDc288c4GtB8yUDme+bB2OYDPjiSL1JdrAmCEg/1wRTLgVRxV3l8x4jYLEstdyD9 hMbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature:dkim-filter; bh=j4Wt5+zHny+jNVeWIommm01rPqJoQDpyDmv65ZQS5Sw=; b=MBM2jbKqQtZ20Ud6SvCEuGL9QQtQ7RqZJHt+yzQ5gdwPfmK7TSxWi032wS02no5mEL M0jQSzgRWdRMzkKAifBDVMiX90poBo9a8r8XdWsAl5Oa/CyEiDDH2GXT11Z9u34MeSDu rR013lHDPn6L1ppeRnZxc0mRsyto+iFgF/M7Gu1oIA9YPMMtEW2rlxt4rSsM6r43PM/g WEJ0mkZvX0zpAL6NwAcZQOa4Yx5uegiK6qI5ykUahdFJqee0WE1KaW29rIWOZaAOn9cD ShkBt0NrhK00Q0tKw/t+d7hgIGg3MQD22e7BTUZ8S9wxEaVFjSsWTdkVPdKmWOQElHLd QHUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2020042201 header.b=qyX9hwha; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w5si917884edx.570.2020.05.08.10.34.06; Fri, 08 May 2020 10:34:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@zytor.com header.s=2020042201 header.b=qyX9hwha; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727113AbgEHRcW (ORCPT + 99 others); Fri, 8 May 2020 13:32:22 -0400 Received: from terminus.zytor.com ([198.137.202.136]:59021 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726746AbgEHRcW (ORCPT ); Fri, 8 May 2020 13:32:22 -0400 Received: from carbon-x1.hos.anvin.org ([IPv6:2601:646:8600:3281:e7ea:4585:74bd:2ff0]) (authenticated bits=0) by mail.zytor.com (8.15.2/8.15.2) with ESMTPSA id 048HVftM3921978 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Fri, 8 May 2020 10:31:41 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 048HVftM3921978 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2020042201; t=1588959104; bh=j4Wt5+zHny+jNVeWIommm01rPqJoQDpyDmv65ZQS5Sw=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=qyX9hwhasKyR0D6xlFQuduuCpCaongWidyAWUxb/fhwYDsxx7V0Mfg1EIX1k21YmX nBAyONHj/k8sjGGcKRrDex9b0FjXOWMx2KBZtVizuPQo9zSjzCoSCWNPi1CB2myIIK 6mlS7GT+BqZCcU0iQ+6qqC5m1o1K9ORGf+h4UFQkrIrlGChUGrklB9GYUKAiW6moF3 DQyMt39w1+13n709biF1A6K8nz94ih9AeZVZ0Y1otScfo1PwknvYrUyGA64Vi2JJuy wkXgU+ZJpjnZCca+JM4BjvvlTmKII+Y763LfO/WBIap8QVGV2k4ADuL988yQ4De3C5 HXAHTXjBpuM5Q== Subject: Re: [PATCH] x86: bitops: fix build regression To: Nick Desaulniers , Brian Gerst Cc: Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Sedat Dilek , stable , Jesse Brandeburg , "kernelci . org bot" , Andy Shevchenko , Ilie Halip , the arch/x86 maintainers , Marco Elver , "Paul E. McKenney" , Daniel Axtens , Masahiro Yamada , Luc Van Oostenryck , Linux Kernel Mailing List , clang-built-linux References: <20200505174423.199985-1-ndesaulniers@google.com> <8A776DBC-03AF-485B-9AA6-5920E3C4ACB2@zytor.com> <20200507113422.GA3762@hirez.programming.kicks-ass.net> From: "H. Peter Anvin" Message-ID: <8f53b69e-86cc-7ff9-671e-5e0a67ff75a2@zytor.com> Date: Fri, 8 May 2020 10:31:36 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-05-08 10:21, Nick Desaulniers wrote: >> >> One last suggestion. Add the "b" modifier to the mask operand: "orb >> %b1, %0". That forces the compiler to use the 8-bit register name >> instead of trying to deduce the width from the input. > > Ah right: https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html#x86Operandmodifiers > > Looks like that works for both compilers. In that case, we can likely > drop the `& 0xff`, too. Let me play with that, then I'll hopefully > send a v3 today. > Good idea. I requested a while ago that they document these modifiers; they chose not to document them all which in some ways is good; it shows what they are willing to commit to indefinitely. -hpa