public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/44214]  New: Compiler does not optimize vector divide with -freciprocal-math (or -ffast-math)
@ 2010-05-20 17:49 meissner at gcc dot gnu dot org
  2010-05-20 18:00 ` [Bug rtl-optimization/44214] " meissner at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: meissner at gcc dot gnu dot org @ 2010-05-20 17:49 UTC (permalink / raw)
  To: gcc-bugs

If you have code that does division by a constant that can be auto vectorized
by the compiler, the compiler does not convert the division to multiplication
by the reciprocal if -freciprocal-math (or -ffast-math), but instead does the
division.

The bug is in fold-const.c near line 11254, where the code for handling
REAL_CST should be cloned to handle VECTOR_CST (and presumably COMPLEX_CST
also).


-- 
           Summary: Compiler does not optimize vector divide with -
                    freciprocal-math (or -ffast-math)
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: meissner at gcc dot gnu dot org
 GCC build triplet: powerpc64-unknown-linux-gnu
  GCC host triplet: powerpc64-unknown-linux-gnu
GCC target triplet: powerpc64-unknown-linux-gnu


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


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

end of thread, other threads:[~2012-04-20 14:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-44214-4@http.gcc.gnu.org/bugzilla/>
2012-04-19 15:21 ` [Bug rtl-optimization/44214] Compiler does not optimize vector divide with -freciprocal-math (or -ffast-math) wschmidt at gcc dot gnu.org
2012-04-20 12:44 ` wschmidt at gcc dot gnu.org
2012-04-20 14:19 ` wschmidt at gcc dot gnu.org
2012-04-20 14:21 ` wschmidt at gcc dot gnu.org
2010-05-20 17:49 [Bug rtl-optimization/44214] New: " meissner at gcc dot gnu dot org
2010-05-20 18:00 ` [Bug rtl-optimization/44214] " meissner at gcc dot gnu dot org
2010-05-20 18:02 ` meissner at gcc dot gnu dot org
2010-05-21  9:48 ` rguenth at gcc dot gnu dot 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).