Received: by 10.213.65.68 with SMTP id h4csp1665084imn; Thu, 5 Apr 2018 01:25:52 -0700 (PDT) X-Google-Smtp-Source: AIpwx48jnmqGyuveltvhC0F04sn09ogahj2UoBjrBRblid6ffadRrxy3/D08BU6TVE/VpBoQr7KV X-Received: by 10.99.169.1 with SMTP id u1mr14566976pge.251.1522916752667; Thu, 05 Apr 2018 01:25:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522916752; cv=none; d=google.com; s=arc-20160816; b=Br+cRep1JizFXL3ulcaYbCjjNF17zuFlTsYo1b9BQ1yI/q0GqJw1+kwVpmqUzdy3U7 eQeVQaymEPtu0NsBNPP1aMLU8zoB3l6+cApSe0Hn3zVrmZqRsqXQfDT0yZKSJpRPKbim bIgAIcpYnvYs0X+hatdLT5A3s6Ccx6hv0MnF6c7evo4QEhnLomKkP7zaZ4Q6pTH+rIQH S4Ip9rgCSia5elzHsPUF/ulJmRGkJ3klVpF4tH/8JlWv9gbOYg7hUmkTQ5W3sbOCZf5p qPhXc2RJNxjAROdRN++in/oNzMSKCO9/7nHaRa4L4jolOzc2NJnpsCF8xf0brw0ZKUK6 mLYA== 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:dkim-signature:arc-authentication-results; bh=HUP8MtlMKxEkJK3kYzHNmdEhGaGhUfSXuF1JLJYDgQY=; b=NthZPeIJH/z97aTjmA7PfT5649YEJAlkS7BAKj8YCYbKCvqBjA77fAE1p1q04WRcfl 7AONviqKq++wS3CTWh1lZydOlFyiace7ZkjsSvPmkuGOn0S4lKn6VstlxxJnCs0zu1RO 22uIZoYWDq18B9p84qUrmRlmIwEjrURTyO+oQHAOfXjl+ujEy66SsNFYhjtSusjGLaqX doag2bVWQ1DE0MJssPDngZmDQ+1YSZ7h5ybS2ber4psLyB92xisskacFqiIS1SjB4z31 +S0q75EXNwVlM2rLnnD4YADultwsxkyFtxzt3j3VYi7FO3q3tyGJO5Sjapu4BrV8XXOK I6gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=oLSMAqbz; 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 k67si5077340pga.195.2018.04.05.01.25.38; Thu, 05 Apr 2018 01:25:52 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=oLSMAqbz; 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 S1751492AbeDEIY0 (ORCPT + 99 others); Thu, 5 Apr 2018 04:24:26 -0400 Received: from merlin.infradead.org ([205.233.59.134]:55046 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751392AbeDEIYY (ORCPT ); Thu, 5 Apr 2018 04:24:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=HUP8MtlMKxEkJK3kYzHNmdEhGaGhUfSXuF1JLJYDgQY=; b=oLSMAqbz2zzvGeu0aEgngEMb/ 7LdKmnh54wOOwvcx4mChPx1qds4IiHEJ9KxVKwQ4qNhZ7KXCaFqUivZ8NTbA8rc5sPy7iX8opUS8p TLSU8v4XMAYaGYE3r/pZBJ2Wvt2+fKaXLwWKCRvpWeV3K/1p7+ssKNaG5bolFNrIB0IooWoibSmzj FjRxux4XbKkfMELrYcMjs/HQgCVn3zgEEsbSgDUsylgKMy4fiVJspmXvxclw6jTAqNETaiK2kI1a6 RFtlSqQBo1D6fxuicat+kga2KOwK0n6q9Vnoq5uxxfVUTNZRntjBwxgErdZeSkm9kCF6QonfmB4E1 TlCO1JXLA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1f40Bn-0007kL-LS; Thu, 05 Apr 2018 08:24:11 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id E8777202A4A09; Thu, 5 Apr 2018 10:24:09 +0200 (CEST) Date: Thu, 5 Apr 2018 10:24:09 +0200 From: Peter Zijlstra To: Ingo Molnar Cc: Linus Torvalds , Matthias Kaehlcke , Arnd Bergmann , Linux Kernel Mailing List , Thomas Gleixner , Andrew Morton , James Y Knight , Chandler Carruth , Stephen Hines , Nick Desaulniers , Kees Cook , Guenter Roeck , Greg Hackmann , Greg Kroah-Hartman Subject: Re: [GIT PULL] x86/build changes for v4.17 Message-ID: <20180405082409.GK4082@hirez.programming.kicks-ass.net> References: <20180404205848.GG87376@google.com> <20180404214639.GH87376@google.com> <20180404221744.GI87376@google.com> <20180404233111.GJ87376@google.com> <20180405072401.GO4043@hirez.programming.kicks-ass.net> <20180405080446.qomyc6ozug3g57gl@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180405080446.qomyc6ozug3g57gl@gmail.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 05, 2018 at 10:04:46AM +0200, Ingo Molnar wrote: > http://www.agner.org/optimize/instruction_tables.pdf > > The SkyLake costs for 'BT', 'AND' and 'TEST' variants are: > > BT m,i 2 2 p06 p23 0.5 > TEST m,r/i 1 2 p0156 p23 1 0.5 These two I would imagine (I tend to forget about the TEST instruction). And while they're of equal speed, TEST has more ports available if I read that right. But yes, on SKL it doesn't matter much. But if you go back in history (a lot) then you'll find BT being far more expensive than TEST. On the original Pentium for example TEST-m,r/i is 2 cycles, but BT-m,i is 4-9 cycles. But yes, going by the tables that's all hysterical raisins, modern cores don't much care.