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/50131] Optimize x = -1 with "or" for -O


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-08-20 08:32:12 UTC ---
Is or $-1, reg on all CPUs equally expensive to mov $-1, reg though (as or
generally needs the previous reg content while mov does not; I know some CPUs
special case xor reg, reg, but I doubt or $-1, reg is special cased)?


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