This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/25620] Missed optimization with power
- From: "jv244 at cam dot ac dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jan 2006 18:15:26 -0000
- Subject: [Bug fortran/25620] Missed optimization with power
- References: <bug-25620-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from jv244 at cam dot ac dot uk 2006-01-13 18:15 -------
another example:
REAL*8 :: a,b
read(6,*) a
b=a**(3.D0/2.D0)
write(6,*) b
END
gets computed by ifort as
b=a*sqrt(a)
but this is also turned into pow by gfortran at -O3 -ffast-math
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25620