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 3A2A83959CB7 for ; Wed, 23 Jun 2021 23:57:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3A2A83959CB7 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: sourceware.org; spf=fail 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 15NNueqN030510; Wed, 23 Jun 2021 18:56:40 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 15NNucNV030509; Wed, 23 Jun 2021 18:56:38 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Wed, 23 Jun 2021 18:56:37 -0500 From: Segher Boessenkool To: Michael Meissner , gcc-patches@gcc.gnu.org, David Edelsohn , Bill Schmidt , Peter Bergner , Will Schmidt Subject: Re: [PATCH 1/3] Add IEEE 128-bit min/max support on PowerPC. Message-ID: <20210623235637.GI5077@gate.crashing.org> References: <20210609001744.GA16932@ibm-toto.the-meissners.org> <20210609002125.GA18854@ibm-toto.the-meissners.org> <20210617173903.GP5077@gate.crashing.org> <20210617191848.GA30801@ibm-toto.the-meissners.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210617191848.GA30801@ibm-toto.the-meissners.org> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, TXREP, T_SPF_HELO_PERMERROR, T_SPF_PERMERROR autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jun 2021 23:57:42 -0000 Hi! On Thu, Jun 17, 2021 at 03:18:48PM -0400, Michael Meissner wrote: > > The actual insns only check TARGET_POWER10 (so no TARGET_FLOAT128_HW). > > Which is right, this or that? > > It should include TARGET_FLOAT128_HW. Okay, so fix that :-) > The problem area is a power10 running in > big endian mode and running 32-bit code. Because we don't have TImode, we > can't enable the IEEE 128-bit hardware instructions. I don't see why not? > > > +/* { dg-require-effective-target ppc_float128_hw } */ > > > +/* { dg-require-effective-target power10_ok } */ > > > +/* { dg-options "-mdejagnu-cpu=power10 -O2 -ffast-math" } */ > > > > In testcases we can assume that float128_hw is set whenever we have a > > p10; we don't manually disable it to make live hard for ourselves ;-) > > Again, I put it in case somebody builds a BE power10 compiler. This should still be fixed. And yes, people do test BE p10, of course. And BE p10 *should* enable the QP float insns. Does it not currently? Segher