Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7445112ybi; Mon, 8 Jul 2019 22:07:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZruUmL5DlAcia+xWwvOz/ZC4fhyMh1HM8TzFlPCiJ0aHjGx1pQl+WDx6purMOqJYcByBz X-Received: by 2002:a17:902:b206:: with SMTP id t6mr30032000plr.195.1562648836628; Mon, 08 Jul 2019 22:07:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562648836; cv=none; d=google.com; s=arc-20160816; b=FZ7uyWX1Tmt0sCitpThcFQcdrv6+pKgl3Y/mvrcACfbj98A4gD+AVIwuCF5jHjBU1I Ezwa8Ef6pJXWWZE/9pBOS+RlArTvKY1pYHg5fnNNJv/IA0pCrirD3pB0nRlI/1got5+a ZaK5+JT5Ln0jN7eXvNRm4ZZfEYDpjr841HagAT0zG0ELrocKnWFfvvwQxUSsSvyKoJ90 ZRpiHSnZQslvdlTPuLHwmR75LxHWvopaprdOcOs1b1mTKgGX9A4MU5B3wQHEWuXWPJe6 OVnz6O0/WIJYRCU67qywBqrgG2LyktCHF2R2qx3wjuMvYSGvIg7MZzCE2gWOFHzPwUUD uSzg== 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; bh=InD1pggxj7L0oiLqVKw9lp4Lo1SOo1AoAub535aBZZM=; b=u8bM2/debrbdVsfLMm67/G4IPEsazeNjapcTQ6JcXgSDHDrw+sngDl16czJYZ4r90v FXVigUB9jC7sJ5luSukbm/HKBbeY+PP+vYlDGhH3pp2duc678aiwY1xa4CfHkX/zksV3 4sXs2z/b7RgbmH30JVhV716ITvS6eebPXBmRn7S2AaYHseu9cqHu9dnEw0GJJBceSq6z KWVEY1g9I8F8+Rq5LNayucm1xn+jL/SMnIisvx9R6zXHsc9s6qW3k0hyIfKO7xL71Le7 G/HXn6e45OAX9EObjDs6Wr3DSwVNBv281zbufRM8/pfrRnKTdvNGSRG8qr5IicMWSWKK zXrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=ZpzLMaKe; 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 v12si23446539pgq.423.2019.07.08.22.07.01; Mon, 08 Jul 2019 22:07:16 -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=@c-s.fr header.s=mail header.b=ZpzLMaKe; 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 S1726057AbfGIFEp (ORCPT + 99 others); Tue, 9 Jul 2019 01:04:45 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:64154 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725818AbfGIFEp (ORCPT ); Tue, 9 Jul 2019 01:04:45 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 45jVcC5PPgz9txvr; Tue, 9 Jul 2019 07:04:43 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=ZpzLMaKe; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id NtE2ogjVIdW2; Tue, 9 Jul 2019 07:04:43 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 45jVcC4Fgfz9txvj; Tue, 9 Jul 2019 07:04:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1562648683; bh=InD1pggxj7L0oiLqVKw9lp4Lo1SOo1AoAub535aBZZM=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=ZpzLMaKeSsTH4l510UePhhSoJco41Adi8YKLtLj6kN1YJ3QaPifONfn9FoZgvJA5n nbn8J/K4v7W00iUT46j4RlPBFpK0PxwkA6vDPCtndy5SRTJj3OszjRUYDSJIOpVNZA S+XYnOoBUltwCHlbP6pHRMdQW0VRN4BCE1F1j9FY= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 60CFC8B7C1; Tue, 9 Jul 2019 07:04:44 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id LtvkpDjRKwoA; Tue, 9 Jul 2019 07:04:44 +0200 (CEST) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 984448B756; Tue, 9 Jul 2019 07:04:43 +0200 (CEST) Subject: Re: [PATCH v2] powerpc: slightly improve cache helpers To: Nathan Chancellor , Michael Ellerman , Segher Boessenkool Cc: Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com References: <45hnfp6SlLz9sP0@ozlabs.org> <20190708191416.GA21442@archlinux-threadripper> From: Christophe Leroy Message-ID: Date: Tue, 9 Jul 2019 07:04:43 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20190708191416.GA21442@archlinux-threadripper> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ? Do you have a disassembly of the code both with and without this patch in order to compare ? Segher, any idea ? Christophe > > https://travis-ci.com/ClangBuiltLinux/continuous-integration/jobs/213944668 > > I've attached my local bisect/build log. > > Cheers, > Nathan >