Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp265185ybt; Sat, 13 Jun 2020 03:52:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHphsRgVhJPRy9cn4NdAkNnKFgK6PHJw1/D/PlMdJO/+E2ybKp7cbQNx5aUWLygcFLZUTN X-Received: by 2002:a17:906:aec5:: with SMTP id me5mr4947930ejb.54.1592045531171; Sat, 13 Jun 2020 03:52:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592045531; cv=none; d=google.com; s=arc-20160816; b=wqngwyi0Rr6jtwab03HUSRPtLuSE8w99cA+3w1YTGe8YVLfAHRcufSSEYnWrxKEJzq 0iIpBRT6iY6RxVRz9dFaX6zedEIhHLpCp+c5ZWxHCbBJQaZTgMc2QA3+xBEngMJgToye y+z+t1U5qY6JwrTMMilKyX6iu15+uyxcXKvDi7f/erOj/zsLFsqBj90ff8eSfwTq2sQO cHKXKiyQhKSr9OkQJihcwU2hFHl+T0U6BqPkC/X+RAvSG0fXBms1aQwSrN/N1GquRiwH JzwtpuoRNd88QqtWW2SUdVCODAO+vIheXaJEfDQQwAd6DYnVjExSoe8EqoRHMPmXKHqZ oP7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=NkyloyX9F3HuQS+KjXQm7NDxZYwBjoPO4Z/5kfLRPdA=; b=hOEjJGy5TmcNtn3W7q4W1cbnt3SffJ730l+Cs9g4syJP7cGpakSjtUlYuGxG6QNcZA I83BvLORVxfQbV6GbzbVtCLBJCveL68VLl8dafBTq8GveLawCPeuW/Pi0vzjI9ZD4c+y ngl4X1njBLYbO8txYOpaxIiEn5d3CFVYvuFvssBS0sKxPE2GzHwVLEmUXT0a+wHQqznX JQUramAvdsABHVgAhkszV4Uais8CrpVGRWbakKf2v9b7bsXniwkWvuBQhqNA4Hejg3xl D+P5SOpwuVLoJDK5PH2rYlYV2GSWjfnwZOlLhqK1ocmE77NhKwPg5TBP7VklCvGRLezH 9zmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=BFq6fOLl; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z4si5669969eju.219.2020.06.13.03.51.36; Sat, 13 Jun 2020 03:52:11 -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=@ellerman.id.au header.s=201909 header.b=BFq6fOLl; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726017AbgFMKqs (ORCPT + 99 others); Sat, 13 Jun 2020 06:46:48 -0400 Received: from ozlabs.org ([203.11.71.1]:39719 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725783AbgFMKqr (ORCPT ); Sat, 13 Jun 2020 06:46:47 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 49kZ5w30F3z9sRK; Sat, 13 Jun 2020 20:46:44 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1592045205; bh=C+TXIauZrJrUOan6WNfQuTL+WR9gkJUGFPXh/uGrLlw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=BFq6fOLlZD1bp+UeJIgWj7V6rrZOCFN5xO4KmX/K6nK5DHLGWYo6yc0/TXebp10pH haRlfxxiGBjbjt1KyQBdZfXC5633q24KvmQv9W65PlYHeyzk7ZAFTH1ry4XdQ4fU+F jJf0LneOpxTqNH1sz0J0P8UtapPt7oFpo/TvZ5w5xAOVDCnIcKYJAYGHAU1RzUdOAp q9dPbdIO689+8ZuyCjTntkjTvjfg1P2YWXwr4LUu9Plz/f+oWYnn53s3Fn5+MnSbhf mtaEIkof+H5iuZL1Fy2igpddeaV9ro/qD8ZRof0jB7vctPZjLfkWI8syL8jKC2+6O/ AIXbAhH7SrVtA== From: Michael Ellerman To: Nick Desaulniers , Segher Boessenkool Cc: Michael Ellerman , Christophe Leroy , Benjamin Herrenschmidt , LKML , linuxppc-dev , Nicholas Piggin , Paul Mackerras , clang-built-linux Subject: Re: [PATCH v4 1/2] powerpc/uaccess: Implement unsafe_put_user() using 'asm goto' In-Reply-To: References: <49YBKY13Szz9sT4@ozlabs.org> <20200611224355.71174-1-ndesaulniers@google.com> <20200611235256.GL31009@gate.crashing.org> Date: Sat, 13 Jun 2020 20:47:11 +1000 Message-ID: <87366zfdjk.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Nick Desaulniers writes: > On Thu, Jun 11, 2020 at 4:53 PM Segher Boessenkool > wrote: >> >> On Thu, Jun 11, 2020 at 03:43:55PM -0700, Nick Desaulniers wrote: >> > Segher, Cristophe, I suspect Clang is missing support for the %L and %U >> > output templates [1]. ... > > IIUC the bug report correctly, it looks like LLVM is failing for the > __put_user_asm2_goto case for -m32. A simple reproducer: > https://godbolt.org/z/jBBF9b If you add `-mregnames` you get register names: https://godbolt.org/z/MxLjhF foo: stw %r3, 0(%r5) stw %r4, 4(%r5) blr cheers