From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by sourceware.org (Postfix) with ESMTPS id 485AB385480F for ; Thu, 19 Nov 2020 08:08:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 485AB385480F Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0AJ845vh186513; Thu, 19 Nov 2020 03:08:10 -0500 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 34wg65xvhn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Nov 2020 03:08:10 -0500 Received: from m0098394.ppops.net (m0098394.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 0AJ856uV192152; Thu, 19 Nov 2020 03:08:09 -0500 Received: from ppma01dal.us.ibm.com (83.d6.3fa9.ip4.static.sl-reverse.com [169.63.214.131]) by mx0a-001b2d01.pphosted.com with ESMTP id 34wg65xvh5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Nov 2020 03:08:09 -0500 Received: from pps.filterd (ppma01dal.us.ibm.com [127.0.0.1]) by ppma01dal.us.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 0AJ86oSe013047; Thu, 19 Nov 2020 08:08:08 GMT Received: from b01cxnp23034.gho.pok.ibm.com (b01cxnp23034.gho.pok.ibm.com [9.57.198.29]) by ppma01dal.us.ibm.com with ESMTP id 34uttrtf6a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Nov 2020 08:08:08 +0000 Received: from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com [9.57.199.109]) by b01cxnp23034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 0AJ887eD59834810 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 19 Nov 2020 08:08:07 GMT Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7D926112065; Thu, 19 Nov 2020 08:08:07 +0000 (GMT) Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0D4FE112061; Thu, 19 Nov 2020 08:08:07 +0000 (GMT) Received: from ibm-toto.the-meissners.org (unknown [9.65.203.26]) by b01ledav004.gho.pok.ibm.com (Postfix) with ESMTPS; Thu, 19 Nov 2020 08:08:06 +0000 (GMT) Date: Thu, 19 Nov 2020 03:08:05 -0500 From: Michael Meissner To: Segher Boessenkool Cc: Jakub Jelinek , Michael Meissner , gcc-patches@gcc.gnu.org, David Edelsohn , Bill Schmidt , Peter Bergner Subject: Re: [PATCH] PowerPC Fix ibm128 defaults for pr70117.c test. Message-ID: <20201119080805.GA27187@ibm-toto.the-meissners.org> Mail-Followup-To: Michael Meissner , Segher Boessenkool , Jakub Jelinek , gcc-patches@gcc.gnu.org, David Edelsohn , Bill Schmidt , Peter Bergner References: <20201115171747.GA10343@ibm-toto.the-meissners.org> <20201118214320.GQ2672@gate.crashing.org> <20201118215349.GT3788@tucnak> <20201118222909.GR2672@gate.crashing.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201118222909.GR2672@gate.crashing.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312, 18.0.737 definitions=2020-11-19_05:2020-11-17, 2020-11-19 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 malwarescore=0 suspectscore=0 adultscore=0 impostorscore=0 mlxscore=0 mlxlogscore=999 lowpriorityscore=0 priorityscore=1501 spamscore=0 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011190058 X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham 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 08:08:13 -0000 On Wed, Nov 18, 2020 at 04:29:09PM -0600, Segher Boessenkool wrote: > On Wed, Nov 18, 2020 at 10:53:49PM +0100, Jakub Jelinek wrote: > > On Wed, Nov 18, 2020 at 03:43:20PM -0600, Segher Boessenkool wrote: > > > Hi! > > > > > > On Sun, Nov 15, 2020 at 12:17:47PM -0500, Michael Meissner wrote: > > > > --- a/gcc/testsuite/gcc.target/powerpc/pr70117.c > > > > +++ b/gcc/testsuite/gcc.target/powerpc/pr70117.c > > > > @@ -9,9 +9,11 @@ > > > > 128-bit floating point, because the type is not enabled on those > > > > systems. */ > > > > #define LDOUBLE __ibm128 > > > > +#define IBM128_MAX ((__ibm128) 1.79769313486231580793728971405301199e+308L) > > > > > > This is the IEEE QP float number 43fefffffffffffff7ffffffffffff80 which > > > I very much doubt is the maximum finite double-double? See the 0 in the > > > > Numbers without the 0 in the middle-end aren't valid, see > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95450#c6 > > for more details. Without the 0 in the middle the double double number > > rounded to double would require increasing the higher double, and as it is > > the largest representable finite number, that is not possible. > > Ah, in that way. Tricky. > > Mike, please add a comment, what number it represents? Okay for trunk > with that, thanks. > > (Should those not be define in some header though?) When long double is IBM extended double, then LDBL_MAX, etc. is set with math.h (and the __ version created by the compiler). We don't have min/max for the funky MD only floating point numbers defined. I got the number by printing LDBL_MAX in fact and just pasting that in. -- Michael Meissner, IBM IBM, M/S 2506R, 550 King Street, Littleton, MA 01460-6245, USA email: meissner@linux.ibm.com, phone: +1 (978) 899-4797