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 4A398385C6C2; Tue, 11 Jun 2024 22:17:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4A398385C6C2 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 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4A398385C6C2 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=63.228.1.57 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718144256; cv=none; b=vvjITtS1eVFBh32F1gMG87rRn1VyXAOud4efZB1QF+y4G/tUwWFDQtq5RcX0D7r3B8zQWXhHys0wLHoR85+y2YSfn9UpcnozuvfacF/Y2Eq4EifdAV9H8Pq4cpfe3aWOyzUmSccqvgh5dBisTKNpt3By4xnkx0EYZFdRhGEgQSw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718144256; c=relaxed/simple; bh=pvX32awOftntaM1phqiZ1Op/jtnZzaEiLSMfhx22qCY=; h=Date:From:To:Subject:Message-ID:Mime-Version; b=KaG1wDThgxFbnQPTEfTTTwH+E68gG7Mj2ICJGOcss4gAlCBAmfixQjvLcoRSGUbDpi/AA/lOyfvcy+klWLCh4Tiu+NndabaNP88fXeWcSj6VXkqiwQJ48j4UvErCoV848OnbVmiOEV62nsSsL1IXFZm/bEoWzSyQCooqnMqATjw= ARC-Authentication-Results: i=1; server2.sourceware.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 45BMFUo8022705; Tue, 11 Jun 2024 17:15:30 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 45BMFTfI022704; Tue, 11 Jun 2024 17:15:29 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Tue, 11 Jun 2024 17:15:29 -0500 From: Segher Boessenkool To: Rene Rebe Cc: gcc-patches@gcc.gnu.org, linkw@linux.ibm.com, sjames@gcc.gnu.org, bergner@linux.ibm.com, dje.gcc@gmail.com Subject: Re: [PATCH v2] fix PowerPC < 7 w/ Altivec not to default to power7 Message-ID: <20240611221529.GF19790@gate.crashing.org> References: <20240611.162254.1882679419605247393.rene@exactcode.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240611.162254.1882679419605247393.rene@exactcode.de> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,KAM_NUMSUBJECT,KAM_SHORT,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi! What does "powerpc < 7" mean? Something before POWER ISA 2.06? On Tue, Jun 11, 2024 at 04:22:54PM +0200, Rene Rebe wrote: > Glibc uses .machine to determine assembler optimizations to use. What does this mean? .machine is an *output* for glibc; nothing in glibc reads source code. Nothing the ".machine" directive does has anything to do with optimisations. Instead, it simply changes what architecture level is used for the following code. what specific instructions are supported mainly. > --- a/gcc/testsuite/gcc.target/powerpc/pr97367.c.vanilla 2024-05-30 18:26:29.839784279 +0200 > +++ b/gcc/testsuite/gcc.target/powerpc/pr97367.c 2024-10-06 18:20:34.873818482 +0200 > @@ -0,0 +1,9 @@ > +/* { dg-do compile } */ > +/* { dg-options "-mdejagnu-cpu=G5" } */ > + > +int dummy () > +{ > + return 0; > +} > + > +/* { dg-final { scan-assembler "power4" } } */ Please explain (in the testcase, not here!) what this is meant to test! You probably want to say {\mpower4\M} instead, btw. Unless you want to match ".machine spower436" as well? Segher