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 E456B385F018 for ; Wed, 16 Feb 2022 23:44:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E456B385F018 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 21GNhYZs004894; Wed, 16 Feb 2022 17:43:34 -0600 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 21GNhXw4004893; Wed, 16 Feb 2022 17:43:33 -0600 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Wed, 16 Feb 2022 17:43:33 -0600 From: Segher Boessenkool To: Michael Meissner , gcc-patches@gcc.gnu.org, David Edelsohn , Bill Schmidt , Peter Bergner , Will Schmidt Subject: Re: [PATCH, V3] PR target/99708- Define __SIZEOF_FLOAT128__ and __SIZEOF_IBM128__ Message-ID: <20220216234333.GK614@gate.crashing.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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-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, 16 Feb 2022 23:44:36 -0000 Hi! On Wed, Feb 16, 2022 at 06:03:53PM -0500, Michael Meissner wrote: > [PATCH, V3] Define __SIZEOF_FLOAT128__ and __SIZEOF_IBM128__. > > Define the sizes of the PowerPC specific types __float128 and __ibm128 if those > types are enabled. > > This patch will define __SIZEOF_IBM128__ and __SIZEOF_FLOAT128__ if their > respective types are created in the compiler. > gcc/ > PR target/99708 > * config/rs6000/rs6000-c.cc (rs6000_cpu_cpp_builtins): Define > __SIZEOF_IBM128__ if the IBM 128-bit long double type is created. > Define __SIZEOF_FLOAT128__ if we have float128 support. > --- a/gcc/config/rs6000/rs6000-c.cc > +++ b/gcc/config/rs6000/rs6000-c.cc > @@ -622,8 +622,13 @@ rs6000_cpu_cpp_builtins (cpp_reader *pfile) > builtin_define ("__RSQRTE__"); > if (TARGET_FRSQRTES) > builtin_define ("__RSQRTEF__"); > + if (ibm128_float_type_node) > + builtin_define ("__SIZEOF_IBM128__=16"); > if (TARGET_FLOAT128_TYPE) > - builtin_define ("__FLOAT128_TYPE__"); > + { > + builtin_define ("__FLOAT128_TYPE__"); > + builtin_define ("__SIZEOF_FLOAT128__=16"); > + } if (TARGET_FLOAT128_TYPE) builtin_define ("__FLOAT128_TYPE__"); if (float128_type_node) builtin_define ("__SIZEOF_FLOAT128__=16"); if (ibm128_float_type_node) builtin_define ("__SIZEOF_IBM128__=16"); Okay like that. Thanks! Segher