Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4763528imm; Mon, 25 Jun 2018 23:34:49 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLzJ/ho2u1QXrSp//z7qWwHNXwDMzczhs4wv0gBFPzNrbBWqZ33UjCKqkg4cMQZq3G+d1P+ X-Received: by 2002:a63:6501:: with SMTP id z1-v6mr217153pgb.452.1529994889180; Mon, 25 Jun 2018 23:34:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529994889; cv=none; d=google.com; s=arc-20160816; b=KvL/eMJkEAdXBq/j2cdHf0PlOG2TlHS8g5KrDrCev1buxWNyCYXsikC+Qm114lRlJ6 2Wu3guECE5IoIA4V/7a9hucvihGQn237OMscFPiSF1UVdbzcGNGyuBmjvFnScRKcdHV8 0DOfu+58aFcoGskXbktvYTIUsmeMg1gJVQ9SKFfPmNoUjrMtUANj4tf/HRxfCs7c7eYM /l5gGkwUmc4EoKFW+G05ozVQVIs+Jk5Yae4kvlA4+Ht6vBP3t6XAaSrFG17PyAQCn8Rn yXuENOV9m+GGdCS8Mu7IllIpVT3A/YGa8QTaYndp58gckQm6oWCs5Uvb3M8eOnbbgZ85 h4Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:in-reply-to:references :subject:cc:to:from:date:message-id:arc-authentication-results; bh=UvZmVCf6e4+g1zuXjjjrIfV7sFEy2SVMa/UVzUvgE/E=; b=LGrxkFZ9PLjonNxIkmGHiv8bC2KtCAuh8RW+XWkT7uYYewnq24BK1389GHmA7/pCh0 qrxT829qvvA/LVnLg4lqZCJnAxClEREjvVXGts45Aq7NWxFQaKT/p7lbF/b3/6rrPh9J j2+fnPLADrD/RzKl2kwKI9dHADRVhe0Kebwa5QUJHYpDDRtcb7rk5/ycdSSDvxidOMyI lGS419iPBgiqibfKvKZioIRtNtJ7pkvqbKuBn40l3yjmhHdFCuRKHJnviaixCA70JUEC FmhrjlurCIR6fvn11thQaeIxfdKtr+Io95/hN0twt+JBR1qL1M4lOZ668e6n04bmqJX1 Wl0Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o3-v6si936671pfa.15.2018.06.25.23.34.34; Mon, 25 Jun 2018 23:34:49 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752031AbeFZGcg convert rfc822-to-8bit (ORCPT + 99 others); Tue, 26 Jun 2018 02:32:36 -0400 Received: from prv1-mh.provo.novell.com ([137.65.248.33]:57809 "EHLO prv1-mh.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751935AbeFZGcf (ORCPT ); Tue, 26 Jun 2018 02:32:35 -0400 Received: from INET-PRV1-MTA by prv1-mh.provo.novell.com with Novell_GroupWise; Tue, 26 Jun 2018 00:32:34 -0600 Message-Id: <5B31DDFF02000078001CDC03@prv1-mh.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 18.0.0 Date: Tue, 26 Jun 2018 00:32:31 -0600 From: "Jan Beulich" To: , , , Cc: Subject: Re: [PATCH] x86-64: use 32-bit XOR to zero registers References: <5B30C32902000078001CD6D5@prv1-mh.provo.novell.com> In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8BIT Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>> On 25.06.18 at 18:33, wrote: > On 06/25/2018 03:25 AM, Jan Beulich wrote: >> Some Intel CPUs don't recognize 64-bit XORs as zeroing idioms - use >> 32-bit ones instead. > > Hmph. Is that considered a bug (errata)? No. > URL/references? Intel's Optimization Reference Manual says so (in rev 040 this is in section 16.2.2.5 "Zeroing Idioms" as a subsection of the Goldmont/Silvermont descriptions). > Are these changes really only zeroing the lower 32 bits of the register? > and that's all that the code cares about? No - like all operations targeting a 32-bit register, the result is zero extended to the entire 64-bit destination register. Jan