Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7533563ybi; Mon, 8 Jul 2019 23:51:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPQ0s5ufFRQmD8rPAZUVyyAbKnCGPpi0X+boFO/GceTX+ezqk3CbapRr5NapSvQekdVnXz X-Received: by 2002:a63:3ec7:: with SMTP id l190mr29470943pga.334.1562655061698; Mon, 08 Jul 2019 23:51:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562655061; cv=none; d=google.com; s=arc-20160816; b=kZIoVeMy7Ygz3jQ9aKPeuYbyhUjPHlqgHXyM2aqi17Rod0bI/EUb8y+mg3IrEKtsGY qIytti2z4KNSF9XC4KUtKG0W3ff48fkNmGosinVHnkwfkZRhuE+X0SAR0umA2GIlq+df KzkMpLq04GXrhk8EFlDmq20Qbr6p+cij62BqWoQBESkzvMj/+hyWBtUHPxylRxP9T6ax nTYJ56AoiwRsIXzzdxudUtGykhMBc/2qojH/gABlidhRCWAGOC1RjlSC1VFzPbwqmPnj ksT+uC303vbZD8LMuIsjuNx1TkJrKiJm2IhN6iuhn1CiO1EjjTN8Iyy6nDoX8AE79AV1 5UOw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Nb0pkc+k4Qz3CzHqObu3Bzh+hOHM655Cn2712+LoHC0=; b=S85SFr2B7mT8tqfFagb9NwdOORAOFiPXLW307y5w3JKKoEpGK5hD7dvzZ6BEGXDBZ3 f1sRXfdDJQzC4/obrV8BpkzvwfxvP8eQSYSJK029gfwzZL+v3VaAzkJxcdte0bl1Rawl /rJhcbwu7XYQsLsB8+PdoksW4zqBJh6BekVEwgYGD0cxgZ9FzrekpPigiYpy/MjjtWLb ZiH7O0TSlIya+GE6WEwNYu2Y1MaAVibuTmCWXTz5s+ugDmo2PZtxk/pylSbDzgrO2m/J N6AykX8APS0siJHDNE0uc/pyjg4TzTTCbZ+LkFDpRqvmRmy8LIPdlEpjAhnHc2lXPeXL dDgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Djoi1z+O; 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 e21si8590803pfl.68.2019.07.08.23.50.46; Mon, 08 Jul 2019 23:51:01 -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=Djoi1z+O; 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 S1726371AbfGIGt5 (ORCPT + 99 others); Tue, 9 Jul 2019 02:49:57 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:39204 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726055AbfGIGt4 (ORCPT ); Tue, 9 Jul 2019 02:49:56 -0400 Received: by mail-wr1-f65.google.com with SMTP id x4so19658034wrt.6 for ; Mon, 08 Jul 2019 23:49:55 -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:content-transfer-encoding:in-reply-to :user-agent; bh=Nb0pkc+k4Qz3CzHqObu3Bzh+hOHM655Cn2712+LoHC0=; b=Djoi1z+OJdSQcbc/LHWSmwd9/9O9pkUGvPL14F6N7LW+l0FNebr+OsMd06cuG1vmiq 9pmmo5vgmdUxRkJ/ClYyBf8TXiMy45EGTo8PjW1nO5ACH5Nlswhavg1yZP2f1sB/6Jt+ bLiVFFTFIwWIYSFgwBCk4pMUiUgXnPOn+YFGc2ujMYz+xBJkxJn9NuZV5Aw4R4Rdvrj4 xsHkHQ8G3CD0OJjE+Cr+HjCIKVjIUAVeUOjGWWlAF/WrAEP9Ymvqb6I3xRcGp3nhdQp9 0HQ2MXRlz4O1ffK9GMUfoJx+7rBFQJQ/e4EB2xbgCcw8VLKhe+FWoVe/B3h1EXh1PG1w TZLQ== 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:content-transfer-encoding :in-reply-to:user-agent; bh=Nb0pkc+k4Qz3CzHqObu3Bzh+hOHM655Cn2712+LoHC0=; b=TfSDVWZTgl1LjhT0UHsoyeeLfdYsWcXHbUPaMekCxixV8qRfaeoth1B4BSkdUJDd4M xISWD2ADf/Qh8KBcFst25jC3rW+mVwF2Yg1ka5X2J/QxSnngcH6pAZ7UGVBVRa+zHxE/ bZWRcArEU6Y+9f2Ozxsebbg43va5kDGVc9cbdDjqqngrepnHENfsWFjV3xNKqfPbF2xt FytUrZLGapqcuzGkEmcEOMtB0/0I5PYoUOS9tsVp6nErNwN/RpTSsXpVEOCQkh2AF4a8 8lE742WIdPIwK05jSKoJTGS++1N7WawBBAbx20AjzHDDGfO9KaU/LJ5dcF5q6yhssAWf hUww== X-Gm-Message-State: APjAAAVAVEGRLWjema5TVLpqkwwedlb6kBq1Scl9H8lEQaUxPXO+WYGN aDd8fneDUTo1byMGt88vlJk= X-Received: by 2002:adf:dd51:: with SMTP id u17mr21977289wrm.218.1562654994345; Mon, 08 Jul 2019 23:49:54 -0700 (PDT) Received: from archlinux-threadripper ([2a01:4f8:222:2f1b::2]) by smtp.gmail.com with ESMTPSA id n3sm10904758wrt.31.2019.07.08.23.49.53 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 08 Jul 2019 23:49:53 -0700 (PDT) Date: Mon, 8 Jul 2019 23:49:52 -0700 From: Nathan Chancellor To: Christophe Leroy Cc: Michael Ellerman , Segher Boessenkool , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH v2] powerpc: slightly improve cache helpers Message-ID: <20190709064952.GA40851@archlinux-threadripper> References: <45hnfp6SlLz9sP0@ozlabs.org> <20190708191416.GA21442@archlinux-threadripper> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 09, 2019 at 07:04:43AM +0200, Christophe Leroy wrote: > > > Le 08/07/2019 ? 21:14, Nathan Chancellor a ?crit?: > > On Mon, Jul 08, 2019 at 11:19:30AM +1000, Michael Ellerman wrote: > > > On Fri, 2019-05-10 at 09:24:48 UTC, Christophe Leroy wrote: > > > > Cache instructions (dcbz, dcbi, dcbf and dcbst) take two registers > > > > that are summed to obtain the target address. Using 'Z' constraint > > > > and '%y0' argument gives GCC the opportunity to use both registers > > > > instead of only one with the second being forced to 0. > > > > > > > > Suggested-by: Segher Boessenkool > > > > Signed-off-by: Christophe Leroy > > > > > > Applied to powerpc next, thanks. > > > > > > https://git.kernel.org/powerpc/c/6c5875843b87c3adea2beade9d1b8b3d4523900a > > > > > > cheers > > > > This patch causes a regression with clang: > > Is that a Clang bug ? No idea, it happens with clang-8 and clang-9 though (pretty sure there were fixes for PowerPC in clang-8 so something before it probably won't work but I haven't tried). > > Do you have a disassembly of the code both with and without this patch in > order to compare ? I can give you whatever disassembly you want (or I can upload the raw files if that is easier). Cheers, Nathan > > Segher, any idea ? > > Christophe > > > > > https://travis-ci.com/ClangBuiltLinux/continuous-integration/jobs/213944668 > > > > I've attached my local bisect/build log. > > > > Cheers, > > Nathan > >