From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B24E13846078; Tue, 1 Jun 2021 16:19:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B24E13846078 From: "kargl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/100855] pow run time gfortran vs ifort Date: Tue, 01 Jun 2021 16:19:11 +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: 11.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kargl at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority cf_reconfirmed_on everconfirmed bug_status cc 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jun 2021 16:19:11 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100855 kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P4 Last reconfirmed| |2021-06-01 Ever confirmed|0 |1 Status|UNCONFIRMED |WAITING CC| |kargl at gcc dot gnu.org --- Comment #1 from kargl at gcc dot gnu.org --- This is not a gfortran bug. Adding code to use exp() and log(), I compiled the modified code: s0 =3D s0 + i**(0.05 + n) s1 =3D s1 + exp(0.05 + n) s2 =3D s2 + log(0.05 + n) with the -fdump-tree-optimized option. Looking at the dumped info, one finds the three lines=20 _107 =3D __builtin_powf (_103, _106); _109 =3D __builtin_expf (_105); _111 =3D __builtin_logf (_105); If I compile the code with "-S -O3" and look at the assembly code I see call powf call expf call logf which are math functions contained in your system's libm. So, this is an issue with your libm not gfortran. I'll let someone else judge whether the bug should be closed with INVALID or WONTFIX.=