From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 054493857C45; Tue, 6 Jun 2023 12:56:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 054493857C45 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686056162; bh=zICSklaxLINFHpiHtJUX+85nwuQWqzHbr8DlMNRAf4k=; h=From:To:Subject:Date:In-Reply-To:References:From; b=PtQsjS+nLUR6X7iF9D4t5YfK3jBlfMqt9rw3SuXLYh9HM7mQOqdCTi+Tu7wBG6Ix+ A/XCZ5jEkVjDnfLz/8sIlrkp4u9Y63j+hiu4fFhXv5+a7MxmAi1LnQOc7W4Gp3BQ0l 4iNXsRoYvVsbdRdfKj9aEHGgOUevHtAqYiE3SIzA= From: "fxcoudert at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/95644] [F2018] IEEE_FMA is missing from the IEEE_ARITHMETIC module Date: Tue, 06 Jun 2023 12:56:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 9.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fxcoudert at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: fxcoudert at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_known_to_work target_milestone resolution bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95644 Francois-Xavier Coudert changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |13.0 Target Milestone|12.4 |13.0 Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #19 from Francois-Xavier Coudert = --- Not sure why this was not cross-posted here automatically, but it was fixed= a year ago, and part of GCC 13 release: https://gcc.gnu.org/git/?p=3Dgcc.git;a=3Dcommit;h=3D7c4c65d11469d29403d5a88= 316445ec95cd3c3f8 commit 7c4c65d11469d29403d5a88316445ec95cd3c3f8 Author: Francois-Xavier Coudert Date: Wed Aug 31 15:22:50 2022 +0200 fortran: Add IEEE_SIGNBIT and IEEE_FMA functions The functions are added to the IEEE_ARITHMETIC module, but are entirely expanded in the front-end, using GCC built-ins. 2022-08-31 Francois-Xavier Coudert PR fortran/95644 gcc/fortran/ * f95-lang.cc (gfc_init_builtin_functions): Declare FMA built-ins. * mathbuiltins.def: Declare FMA built-ins. * trans-intrinsic.cc (conv_intrinsic_ieee_fma): New function. (conv_intrinsic_ieee_signbit): New function. (gfc_build_intrinsic_lib_fndecls): Add cases for FMA and SIGNBIT. gcc/testsuite/ * gfortran.dg/ieee/fma_1.f90: New test. * gfortran.dg/ieee/signbit_1.f90: New test. libgfortran/ * ieee/ieee_arithmetic.F90: Add IEEE_SIGNBIT and IEEE_FMA.=