From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com [68.232.141.98]) by sourceware.org (Postfix) with ESMTPS id 547633857C7B for ; Tue, 25 Jan 2022 11:59:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 547633857C7B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com IronPort-SDR: SwQu4yd/E8dQI57cK1hCJpaos6SVbk0C6EEj5ZQuqWeITNMMJBkIrbFLBztDJ7Euiuj0WOv68B y/MfsuK6OHIFU/WIOWkb1l4Gn2OQBnI92/3YvHZXdm5x2QuF5WueXdJf0nuuhNO8bsEbgHK+jY 6NJ9CAWkuitRXzLyjIVQyW+Fib7pIGLoz0AGQlMRp4mtXZmjcV0Zi4ksvLDEK1n5jxkRlNoAzY KUgZksFAXkf4zDIPzNfT1Er20fHo//ZrDLNa8FZe3DyqC/U5YiRPO0WqvkZbc2l0fk/Aa3t+jO LQk+1ZJZy/jZ4wFMb9DeolNV X-IronPort-AV: E=Sophos;i="5.88,314,1635235200"; d="scan'208";a="71183928" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa2.mentor.iphmx.com with ESMTP; 25 Jan 2022 03:59:09 -0800 IronPort-SDR: zFLnuJ6fdRoiC1qsJ5DDaa83ZH2sG0FhUQsx8LE8tqMTyZ7A4l+4T5GXmjK9S+AtoetRGHRFQO kZ97zN0GtqYudNv7ge+85ZPKBp3yc7R8xFXWcQPKAv6mvz0GSmMwZaKQCradTWKgrPRcmjsQKR AbPtxNuXOI3x9+dlY/I67G2+e/mvFR2eu/5f0TWn/qnVeNJ3wWaItExPgXfZgcRbgO4HEX6vjr bT2EvdbnFgsq+Y+Ozdt1kMsH8L+Cd1kJsLYVnCLms3XejdKLs1ANeeshF1JXlaeK7MeS1TLsZ+ gpY= Message-ID: Date: Tue, 25 Jan 2022 12:59:03 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: powerpc64le real(kind=16) and IEEE_{ARITHMETIC,EXCEPTIONS} modules Content-Language: en-US To: Jakub Jelinek , Thomas Koenig , FX CC: References: <20220125114427.GH2646553@tucnak> From: Tobias Burnus In-Reply-To: <20220125114427.GH2646553@tucnak> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-14.mgc.mentorg.com (139.181.222.14) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_PASS, SPF_PASS, TXREP 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: fortran@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Fortran mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jan 2022 11:59:12 -0000 Hi, On 25.01.22 12:44, Jakub Jelinek via Fortran wrote: > Apparently something we (at least I) have totally missed, we clearly have= a > problem with the IEEE modules for the dual -mabi=3D{ibm,ieee}longdouble. > We have: > __ieee_arithmetic_MOD_ieee_class_16; > __ieee_arithmetic_MOD_ieee_support_datatype_16; ... exported from the library, but no corresponding _17 entrypoints. > Can everything these modules do be resolved at compile time inline > such that for the abi_kind 17 nothing is really called, or > any other thoughts on this? We already have in gfc_conv_function_expr: /* The IEEE_ARITHMETIC functions are caught here. */ if (sym->from_intmod =3D=3D INTMOD_IEEE_ARITHMETIC) if (gfc_conv_ieee_arithmetic_function (se, expr)) return; which handles: if (startswith (name, "_gfortran_ieee_is_nan")) else if (startswith (name, "_gfortran_ieee_is_finite")) else if (startswith (name, "_gfortran_ieee_unordered")) else if (startswith (name, "_gfortran_ieee_is_normal")) else if (startswith (name, "_gfortran_ieee_is_negative")) else if (startswith (name, "_gfortran_ieee_copy_sign")) else if (startswith (name, "_gfortran_ieee_scalb")) else if (startswith (name, "_gfortran_ieee_next_after")) else if (startswith (name, "_gfortran_ieee_rem")) else if (startswith (name, "_gfortran_ieee_logb")) else if (startswith (name, "_gfortran_ieee_rint")) else -> 'return false;' -> library call. Thus, more functions could be handled in the compiler itself. (Likewise for INTMOD_IEEE_EXCEPTIONS, not that I know whether that has any relevant functions.) Alternatively, kind=3D tweaking could be done here as well. Tobias ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstra=C3=9Fe 201= , 80634 M=C3=BCnchen; Gesellschaft mit beschr=C3=A4nkter Haftung; Gesch=C3= =A4ftsf=C3=BChrer: Thomas Heurung, Frank Th=C3=BCrauf; Sitz der Gesellschaf= t: M=C3=BCnchen; Registergericht M=C3=BCnchen, HRB 106955