This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/20614] PowerPC - inefficient use of condition register


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=20614

Segher Boessenkool <segher at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |segher at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #7 from Segher Boessenkool <segher at gcc dot gnu.org> ---
At least as far back as 4.9 GCC does no longer generate subfic; is uses
a mix of cntlzw/srwi, addic/subfe, and cmpw insns.  Using more than three
CR fields is a bad idea (you then need to save and restore CR, which is
expensive on any CPU).

No doubt we could generate better code for this, but the reported
problem is no longer there, so I'm closing this bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]