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 B7CA6385043C for ; Thu, 19 Nov 2020 14:09:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B7CA6385043C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=segher@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 0AJE8oeB015563; Thu, 19 Nov 2020 08:08:50 -0600 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 0AJE8nXk015562; Thu, 19 Nov 2020 08:08:49 -0600 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Thu, 19 Nov 2020 08:08:49 -0600 From: Segher Boessenkool To: "Paul A. Clarke" Cc: Jakub Jelinek , Michael Meissner , Bill Schmidt , gcc-patches@gcc.gnu.org, David Edelsohn Subject: Re: [PATCH] PowerPC Fix ibm128 defaults for pr70117.c test. Message-ID: <20201119140849.GT2672@gate.crashing.org> References: <20201115171747.GA10343@ibm-toto.the-meissners.org> <20201118214320.GQ2672@gate.crashing.org> <20201118215349.GT3788@tucnak> <20201118222909.GR2672@gate.crashing.org> <20201119011304.GA30097@li-24c3614c-2adc-11b2-a85c-85f334518bdb.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201119011304.GA30097@li-24c3614c-2adc-11b2-a85c-85f334518bdb.ibm.com> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-6.4 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: Thu, 19 Nov 2020 14:09:52 -0000 On Wed, Nov 18, 2020 at 07:13:04PM -0600, Paul A. Clarke wrote: > On Wed, Nov 18, 2020 at 04:29:09PM -0600, Segher Boessenkool wrote: > > Mike, please add a comment, what number it represents? Okay for trunk > > with that, thanks. > > > > (Should those not be define in some header though?) > > Would it be better to represent the number in hex, like with printf's '%a' > formatting (e.g. "0x1.921fb54442d18p+0"...this is NOT the same value)? > > (I always get nervous when I see a long float hardcoded in decimal.) Yeah, good point, thanks. That's indeed why I converted it to hex, to see what it *is* :-) Hexadecimal float is C99 so we cannot use it in the installed headers, but it should be fine in most testcases now. And even in the headers we can put it in a comment of course. Segher