Message ID | Yv6vELPxsr5ywncp@toto.the-meissners.org |
---|---|
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6a10:38f:b0:2d5:3c95:9e21 with SMTP id 15csp535001pxh; Thu, 18 Aug 2022 14:29:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR4Ra0EZH0dI2Kjy/wxE5wWvqPC7XeyYxBHoBBbaXe5o8nZpiiraRrRnuaafYIxEDM5bdUIu X-Received: by 2002:a17:907:97c2:b0:731:5679:2cd3 with SMTP id js2-20020a17090797c200b0073156792cd3mr2916007ejc.746.1660858177359; Thu, 18 Aug 2022 14:29:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660858177; cv=none; d=google.com; s=arc-20160816; b=niFXXrpxn7lC9kbXN21pUzeKJpWFR0C/3BmahbG0TNfdeMhWFtlgR+SgFPHsD4XHCL 19ct7PsgzvEN3Swu8o588oO6ptk1O47Dj0YZlnaKikskarZZX7CP2D4iHYCKj9kyKXcA ixZN1Y8vfeqe+3wQy7KN0swo1BsYdGEf/a1DX3RE/PeZdSsUhrfWw7pv1xjiFkXfFjz4 L+/hCfHBsXki2IlRiepYqm/4ulcBEDkTaxnLZjZZbLx8QSpYOxIsfJcdGWIs5aEoteNk WZkiijnv9mkCBBvN/zpha97lTefRlWi9ybVszzLCYl8e8dz4lCO83ArHuqUVKBRR9R/P sDoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-disposition:mime-version:mail-followup-to:message-id :subject:to:date:dmarc-filter:delivered-to:dkim-signature :dkim-filter; bh=PPLCE0b+Jt1jE6B8VWO8pulmtD+FnHsmIe0QBSMvvss=; b=Cx5T0kk57N9dAkKabFEkWCJAMMAqSqFH5YIhEuhwnpb4OKG8gPnLgPht2u5iCR+b4N n/Y0ncBmtb0X9ZzcUMhZ+46+JnVdjOJgque7nzdKngsb7WfJKMz+gpIHYFLjBP4RMNuV 1FsEJcb0saQHBnp6RM0+t/Db6F6eWXQOFxA6xMY8XHSOMl+IYmgjNeoxtzhKl26BhwR9 M9NlJWUKVWY2FU6w4An6DqBoANq1nP1wCm6cI8uYMyISFmajGQ5s+3tLDYV2LAalkhU+ MmqRnfv5gJfq6MtNtqB/TQQRK06XN36VPI2Pm+JuziL/8ZF09ajzuJxUjERQBV+sfrmF zkGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=R7jxitYD; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id z61-20020a509e43000000b0043d281cfe2bsi1730027ede.481.2022.08.18.14.29.37 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Aug 2022 14:29:37 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=R7jxitYD; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2C75A3858289 for <ouuuleilei@gmail.com>; Thu, 18 Aug 2022 21:29:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2C75A3858289 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1660858176; bh=PPLCE0b+Jt1jE6B8VWO8pulmtD+FnHsmIe0QBSMvvss=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=R7jxitYD2UYoOJTqjuKsDJHIRH9gGJVXkP464doyXgqif/Pp98qRizxojT9xN7Umf Cz4LoUQovU+HFf3IV34tNcv89GOHc2XSTgT4FhQlRzGp2wOFiwrwwfdC1rucSxTRPQ E8ahEMzOqtSsVxXmcN+PqewkBxXrpRbn6VFYZ6Gk= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id 041503858D28 for <gcc-patches@gcc.gnu.org>; Thu, 18 Aug 2022 21:28:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 041503858D28 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27ILNBS9016596; Thu, 18 Aug 2022 21:28:52 GMT Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3j1w9tg4kv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 18 Aug 2022 21:28:52 +0000 Received: from m0098417.ppops.net (m0098417.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 27ILOh3O020271; Thu, 18 Aug 2022 21:28:51 GMT Received: from ppma04wdc.us.ibm.com (1a.90.2fa9.ip4.static.sl-reverse.com [169.47.144.26]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3j1w9tg4kf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 18 Aug 2022 21:28:51 +0000 Received: from pps.filterd (ppma04wdc.us.ibm.com [127.0.0.1]) by ppma04wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 27ILKlgG029723; Thu, 18 Aug 2022 21:28:50 GMT Received: from b01cxnp22034.gho.pok.ibm.com (b01cxnp22034.gho.pok.ibm.com [9.57.198.24]) by ppma04wdc.us.ibm.com with ESMTP id 3hx3ka16vf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 18 Aug 2022 21:28:50 +0000 Received: from b01ledav002.gho.pok.ibm.com (b01ledav002.gho.pok.ibm.com [9.57.199.107]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 27ILSn9Q66650600 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 Aug 2022 21:28:50 GMT Received: from b01ledav002.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E1BD2124053; Thu, 18 Aug 2022 21:28:49 +0000 (GMT) Received: from b01ledav002.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9ECC9124055; Thu, 18 Aug 2022 21:28:49 +0000 (GMT) Received: from toto.the-meissners.org (unknown [9.65.225.181]) by b01ledav002.gho.pok.ibm.com (Postfix) with ESMTPS; Thu, 18 Aug 2022 21:28:49 +0000 (GMT) Date: Thu, 18 Aug 2022 17:28:48 -0400 To: gcc-patches@gcc.gnu.org, Michael Meissner <meissner@linux.ibm.com>, Segher Boessenkool <segher@kernel.crashing.org>, "Kewen.Lin" <linkw@linux.ibm.com>, David Edelsohn <dje.gcc@gmail.com>, Peter Bergner <bergner@linux.ibm.com>, Will Schmidt <will_schmidt@vnet.ibm.com> Subject: [PATCH 0/3] Improvements to __ibm128 on PowerPC Message-ID: <Yv6vELPxsr5ywncp@toto.the-meissners.org> Mail-Followup-To: Michael Meissner <meissner@linux.ibm.com>, gcc-patches@gcc.gnu.org, Segher Boessenkool <segher@kernel.crashing.org>, "Kewen.Lin" <linkw@linux.ibm.com>, David Edelsohn <dje.gcc@gmail.com>, Peter Bergner <bergner@linux.ibm.com>, Will Schmidt <will_schmidt@vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-TM-AS-GCONF: 00 X-Proofpoint-GUID: M_3Pyrsev-gSIRL0pG6BGBEyKJgq8PMe X-Proofpoint-ORIG-GUID: xuyQRydu-ddYKCXOsClLSBRjAutcn98L X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-18_16,2022-08-18_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 spamscore=0 malwarescore=0 mlxscore=0 impostorscore=0 phishscore=0 priorityscore=1501 mlxlogscore=741 lowpriorityscore=0 bulkscore=0 clxscore=1015 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2208180076 X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, KAM_MANYTO, KAM_SHORT, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Michael Meissner via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Michael Meissner <meissner@linux.ibm.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1741536023896069237?= X-GMAIL-MSGID: =?utf-8?q?1741536023896069237?= |
Series |
Improvements to __ibm128 on PowerPC
|
|
Message
Michael Meissner
Aug. 18, 2022, 9:28 p.m. UTC
The following 3 patches improve __ibm128 on the PowerPC GCC compiler: The first patch allows the use of the __ibm128 keyword on non-VSX systems. Originally, the __ibm128 keyword was only enabled when the IEEE 128-bit floating point is enabled. Sometime back in the GCC 12 development period, Segher asked that the __ibm128 keyword be allowed in older systems that don't support IEEE 128-bit. This patch allows __ibm128 to be used if either IEEE 128-bit is enabled or long double used the IBM 128-bit format. The second patch fixes PR target/105334. This PR complains that the __ibm128 keyword is not defined on a system that uses IEEE 128-bit long double, but the user used the -msoft-float option. This patch removes the checks for hardware floating point support in IBM 128-bit long double support, and also enables the __ibm128 keyword. The existing test gcc.target/powerpc/pr105334.c will now pass on a system using IEEE 128-bit long double. The third patch uses the 'w' suffix for __ibm128 constants. It turns out we had documented using the 'w' suffix for __ibm128, but we had never implemented it. I have tested these patches on the following systems: 1) LE Power10 using --with-cpu=power10 --with-long-double-format=ieee 2) LE Power10 using --with-cpu=power9 --with-long-double-format=ibm 3) LE Power10 using --with-cpu=power8 --with-long-double-format=ibm 4) LE Power10 using --with-cpu=power10 --with-long-double-format=ibm 5) LE Power9 using --with-cpu=power9 --with-long-double-format=ibm 6) BE Power8 using --with-cpu=power8 --with-long-double-format=ibm 7) BE Power8 using --with-cpu=power5 --with-long-double-format=ibm There were no regressions in the build or in the tests. On the power10 with long double using the IEEE 128-bit format, pr105334.c now runs where it previously failed. Can I check these patches into the trunk? Did we want to back port these changes to older GCC's?