From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by sourceware.org (Postfix) with ESMTP id 5A0913858408 for ; Mon, 27 Sep 2021 17:14:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5A0913858408 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kernel.crashing.org Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 18RHDjRQ010238; Mon, 27 Sep 2021 12:13:45 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 18RHDikh010235; Mon, 27 Sep 2021 12:13:44 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Mon, 27 Sep 2021 12:13:44 -0500 From: Segher Boessenkool To: Jonathan Wakely , gcc-help , unlvsur unlvsur Subject: Re: how to get -march=native's value? Message-ID: <20210927171344.GA8185@gate.crashing.org> References: <5b4a11b1a9a3945256d298cd355991dcffa1d806.camel@mengyan1223.wang> <20210917175325.GS1583@gate.crashing.org> <20210927125528.GA3789484@cventin.lip.ens-lyon.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210927125528.GA3789484@cventin.lip.ens-lyon.fr> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Sep 2021 17:14:47 -0000 On Mon, Sep 27, 2021 at 02:55:28PM +0200, Vincent Lefevre wrote: > On 2021-09-17 12:53:25 -0500, Segher Boessenkool wrote: > > For x86 -march=something is the same as -march=native, _if_ the compiler > > knows about your CPU. > - -mabm [disabled] > + -mabm [enabled] So -mcpu=haswell disables ABM? Huh. I do not know the x86 backend very well, but that looks like a bug. > - -maes [disabled] > + -maes [enabled] Here, too. Esp. because the documentation says it 8should* be enabled. Maybe some features are disabled on some Haswell though? > - --param=l1-cache-size= 64 > - --param=l2-cache-size= 512 > + --param=l1-cache-size= 32 > + --param=l2-cache-size= 15360 This I already explained. Segher