public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/52138] New: Operations on complex values are not inlined, even with -O3
@ 2012-02-06 18:20 gonnet at maths dot ox.ac.uk
  2012-02-06 18:26 ` [Bug c/52138] " jakub at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gonnet at maths dot ox.ac.uk @ 2012-02-06 18:20 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52138
           Summary: Operations on complex values are not inlined, even
                    with -O3
    Classification: Unclassified
           Product: gcc
           Version: 4.5.2
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: gonnet@maths.ox.ac.uk


Irrespective of the optimization level selected, multiplying or dividing two
complex doubles generates a call to __muldc3 or __divdc3 respectively.

Using the "-fcx-limited-range" flag inlines the operations, but then the range
may be limited.

Strangely enough, in the gfortran frontend, complex arithmetic is inlined even
with no optimization (-O0).


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-02-06 19:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-06 18:20 [Bug c/52138] New: Operations on complex values are not inlined, even with -O3 gonnet at maths dot ox.ac.uk
2012-02-06 18:26 ` [Bug c/52138] " jakub at gcc dot gnu.org
2012-02-06 18:33 ` gonnet at maths dot ox.ac.uk
2012-02-06 18:51 ` kargl at gcc dot gnu.org
2012-02-06 18:58 ` dominiq at lps dot ens.fr
2012-02-06 19:29 ` pinskia at gcc dot gnu.org

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).