public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/25620] Missed optimization with power
Date: Mon, 22 Jan 2007 22:02:00 -0000	[thread overview]
Message-ID: <20070122220224.10415.qmail@sourceware.org> (raw)
In-Reply-To: <bug-25620-6642@http.gcc.gnu.org/bugzilla/>



------- Comment #17 from fxcoudert at gcc dot gnu dot org  2007-01-22 22:02 -------
cbrt is now available in the front-end (among others), thanks again to Richard!

Closing this PR, as the optimization appears to be working fully:

$ cat a.f90
REAL*8 :: a(6),b(6)
read(*,*) a(:)
b(1)=a(1)**(1.D0/3.D0)
b(2)=a(2)**(1/3.D0)
b(3)=a(3)**(2.D0/3.D0)
b(4)=a(4)**(1/2.D0)
b(5)=a(5)**(1.D0/2.D0)
b(6)=a(6)**(3.D0/2.D0)
write(*,*) b
END
$ gfortran -O2 -ffast-math a.f90 -S
$ grep -c pow a.s                  
0
$ grep -c cbrt a.s                 
3
$ grep -c sqrt a.s                 
3


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25620


  parent reply	other threads:[~2007-01-22 22:02 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-01 12:29 [Bug tree-optimization/25620] New: Missed optimisation " jv244 at cam dot ac dot uk
2006-01-06 14:07 ` [Bug tree-optimization/25620] Missed optimization with power (only with -ffast-math) pinskia at gcc dot gnu dot org
2006-01-13 16:37 ` [Bug tree-optimization/25620] Missed optimization with power pinskia at gcc dot gnu dot org
2006-01-13 16:44 ` [Bug fortran/25620] " rguenth at gcc dot gnu dot org
2006-01-13 17:33 ` jv244 at cam dot ac dot uk
2006-01-13 17:38 ` jv244 at cam dot ac dot uk
2006-01-13 18:15 ` jv244 at cam dot ac dot uk
2006-01-13 18:42 ` rguenth at gcc dot gnu dot org
2006-01-13 19:58 ` kargl at gcc dot gnu dot org
2006-09-04 14:10 ` jv244 at cam dot ac dot uk
2006-09-04 14:17 ` rguenther at suse dot de
2006-11-04 15:01 ` rguenth at gcc dot gnu dot org
2006-11-05 20:39 ` [Bug middle-end/25620] " patchapp at dberlin dot org
2006-11-26 14:30 ` patchapp at dberlin dot org
2006-11-27 11:39 ` rguenth at gcc dot gnu dot org
2006-11-27 11:52 ` [Bug fortran/25620] " rguenth at gcc dot gnu dot org
2006-11-27 16:49 ` jv244 at cam dot ac dot uk
2007-01-22 22:02 ` fxcoudert at gcc dot gnu dot org [this message]
2010-03-18 14:37 ` vincent at vinc17 dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070122220224.10415.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).