Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp102787imd; Wed, 31 Oct 2018 15:25:20 -0700 (PDT) X-Google-Smtp-Source: AJdET5clrW2bAeGNj+wwQDdLhBJcDJWyq/rz4bmNtn0aqnIr8qtst7w4lhq/7/hNosPNU1pGXU9T X-Received: by 2002:a62:b2c9:: with SMTP id z70-v6mr5263887pfl.79.1541024720272; Wed, 31 Oct 2018 15:25:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541024720; cv=none; d=google.com; s=arc-20160816; b=A4Q6PwplC7VV5YA7SOoK04I+o1UQkPyas9+kuccoCyOc+T+1KzRQmr5tt6pSxKlOMM LrbRji+tPvGf0MEki5JfJHP8zz7oPfmwfA58HaUHyKxrVJm+ryZ2lodB1JuhBaiys23o VL6C+YHRUIlPo/4NXcmKecfm7U88ApXXecvlkWyEJBIKiTg6IUstcbHcK2n1H73d89Hn F0igvW15X+FipucgLFo/I4BWVtbOZe21+3TO4HQI7n6/H4YwjY66fa9RYOxL6JrDz7+1 5fUk82/711dAk29yEjmG5VedeOvJQgWwNZdBLgPMJzVNlerNOk+LozlDqNJM8ZTwGzEv ZYIg== 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=Lb8qWkqHIQTskblxLlZYgx14Ws6Mu42Cdq2Wp7ZZwSU=; b=EpTSgSKn0h6HRX8ulvJtjd1smRWQydT79QD9JETlL8uL7/tn8syMFOaJ2SGeC8eQnH t/iOqPYOpav1nPS09IGfs/6EK/fksBhnD2SnOJKsIEjkdZI8rbwEL/OBKMXfTMaaVUgX kEY887lGhuHCUKlmmTg8Ut2zOxF/yxfpMVjLObpUsqZK7KZnlfJik6FFT27ZsxuGGAPe RLoOu06OLzEcctv/mU5Ydk1h94kkFbXJmKmx/RpkasRp5RJtfU/GEqPJm9POyViPgQ4G pdZ+LUXnCuQLR2VAknMQbHftqQuvU745Pbek4LQ1tNGT03kxLjlvirHbJG4KIhCiL/XA CuKA== 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 be10-v6si8658230plb.143.2018.10.31.15.25.04; Wed, 31 Oct 2018 15:25:20 -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 S1726315AbeKAHWb (ORCPT + 99 others); Thu, 1 Nov 2018 03:22:31 -0400 Received: from gate.crashing.org ([63.228.1.57]:33958 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725812AbeKAHWb (ORCPT ); Thu, 1 Nov 2018 03:22:31 -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 w9VM44AW025632; Wed, 31 Oct 2018 17:04:05 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id w9VGVGNI011284; Wed, 31 Oct 2018 11:31:16 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Wed, 31 Oct 2018 11:31:16 -0500 From: Segher Boessenkool To: Peter Zijlstra Cc: Borislav Petkov , Ingo Molnar , Richard Biener , Michael Matz , gcc@gcc.gnu.org, Nadav Amit , Ingo Molnar , linux-kernel@vger.kernel.org, x86@kernel.org, Masahiro Yamada , Sam Ravnborg , Alok Kataria , Christopher Li , Greg Kroah-Hartman , "H. Peter Anvin" , Jan Beulich , Josh Poimboeuf , Juergen Gross , Kate Stewart , Kees Cook , linux-sparse@vger.kernel.org, Philippe Ombredanne , Thomas Gleixner , virtualization@lists.linux-foundation.org, Linus Torvalds , Chris Zankel , Max Filippov , linux-xtensa@linux-xtensa.org, Andrew Morton Subject: Re: PROPOSAL: Extend inline asm syntax with size spec Message-ID: <20181031163115.GG5994@gate.crashing.org> References: <20181009145330.GT29268@gate.crashing.org> <20181010072240.GB103159@gmail.com> <20181010080324.GV29268@gate.crashing.org> <20181010081906.GA5533@zn.tnic> <20181010185432.GB29268@gate.crashing.org> <20181010191427.GF5533@zn.tnic> <20181013193335.GD31650@zn.tnic> <20181031125526.GA13219@hirez.programming.kicks-ass.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181031125526.GA13219@hirez.programming.kicks-ass.net> 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 Wed, Oct 31, 2018 at 01:55:26PM +0100, Peter Zijlstra wrote: > Anyway, with the below patch, I get: > > text data bss dec hex filename > 17385183 5064780 1953892 24403855 1745f8f defconfig-build/vmlinux > 17385678 5064780 1953892 24404350 174617e defconfig-build/vmlinux > > Which shows we inline more (look for asm_volatile for the actual > changes). > > > So yes, this seems like something we could work with. Great to hear. Note that with my latest patches (see https://gcc.gnu.org/ml/gcc-patches/2018-10/msg01931.html ) there is no required order "asm volatile inline" anymore, so you can just say "asm inline volatile". (And similar for "goto" as well). Segher