Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp1373407ybj; Fri, 20 Sep 2019 09:24:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxy21xCLu1TBOl0WKCd/qSiEujDSKAspGYi2ATRXl7B0Pr9JoY2FDlDqZqts8M7uooWq79p X-Received: by 2002:a17:906:74d4:: with SMTP id z20mr20016184ejl.191.1568996695281; Fri, 20 Sep 2019 09:24:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568996695; cv=none; d=google.com; s=arc-20160816; b=FluO7gRjdgn3FvbehPcER/NqFziOrit0rMJsoLO0PSIXmc2itMWdBpyOY74eZuLGJT Mcjc8MZERefTQa6aTMFTMx83Yj8zl+1IRiRiKy0HoyPi8EHbk5GWaUvh50mNLHVjnvMA XFd3q495Q9uB9QVgOPNKI0APuRVYUZ3lSuJ2sDGQleZLW+eGhF8N78w/XEzchy4QLqPq pX5aDg8hUPsCXghuA3GCMkt6DUf05wZFiiD42WcIOkLUI+bUAP2f562lQfiqnPY9pbT+ x4G0BGYGfU9bkhkmtaoDMf2r4R/0lIi/+mtnPrvEYHiZMQoDuSvmeoTQSby5DBg67QUW MqVw== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=SvIcktq22yVLaiRdSQRq8ZD8ehuZdAFJL74gJPLlGcg=; b=uyZJoMxEp8zBkY/3hRWvG3f8V9eKsr/hNeuLwpcyn9juKggr0KvAMJzvcxfuOgqC5m ZL9+8Fzu09hFbNQdHRc9KEWW2uBuY1W4TXK7HWLrreWfAEpyiYgi4gouzzdPHz8IrlNb 49iIFNbghdxpCA4UqSzEEVwOdzG9Zyl6jp4qEbStWGrlwgNYECfjPTiIS8F8X12IqK25 yc5pDMShhduzB50iHFWLC6FZAIA8UgZtOSkwp6iK2NWOG/cMlBWyWgBB4RrJr7C0/8tq fDrPa6UArHjOvMwzRYa33c9CeJOIYgtvBXxhwXITkg3z3A4Gkraibc0ALSSBXeZtFQkW 9GFg== 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 d13si1623461edo.290.2019.09.20.09.24.32; Fri, 20 Sep 2019 09:24:55 -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 S2393850AbfITAvF (ORCPT + 99 others); Thu, 19 Sep 2019 20:51:05 -0400 Received: from gate.crashing.org ([63.228.1.57]:40239 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390897AbfITAvF (ORCPT ); Thu, 19 Sep 2019 20:51:05 -0400 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id x8K0oj8m031635; Thu, 19 Sep 2019 19:50:45 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id x8K0oi7E031630; Thu, 19 Sep 2019 19:50:44 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Thu, 19 Sep 2019 19:50:44 -0500 From: Segher Boessenkool To: Nick Desaulniers Cc: Jakub Jelinek , Rasmus Villemoes , Miguel Ojeda , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , LKML , "gcc-patches@gcc.gnu.org" , clang-built-linux Subject: Re: [PATCH v2 4/6] compiler-gcc.h: add asm_inline definition Message-ID: <20190920005044.GN9749@gate.crashing.org> References: <20190906163918.GJ2120@tucnak> <20190906220347.GD9749@gate.crashing.org> <20190906225606.GF9749@gate.crashing.org> <20190907001411.GG9749@gate.crashing.org> <20190907131127.GH9749@gate.crashing.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 12, 2019 at 02:54:50PM -0700, Nick Desaulniers wrote: > I have seen instances where instruction selection fails to select the > appropriate way to branch when inline asm size is misjudged, resulting > in un-encodeable jumps (as in the branch target is too far to be > encoded in the number of bits of a single jump/branch instruction). "asm inline" *only* influences the estimated size *for inlining purposes*. Not for anything else. Everything else still uses conservative estimates. Segher