[PING, i386]: Implement -mcmpxchg16b and -msahf options

Uros Bizjak ubizjak@gmail.com
Tue Mar 13 14:48:00 GMT 2007


Hello!

If there are no objections, I plan to commit
http://gcc.gnu.org/ml/gcc-patches/2007-03/msg00507.html to SVN
mainline in a couple of days.

2007-03-08 Uros Bizjak <ubizjak@gmail.com>

       * config/i386/i386.opt (mcmpxchg16b, msahf): New options.
       * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
       (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.


       * config/i386/driver-i386.c (bit_LAHF_LM): New define.
       (host_detect_local_cpu): Detect cmpxchgb16b and lahf_lm cpuid
       bits.  Output -mcmpxchg16b and -msahf options when corresponding
       bit is set.

       * doc/invoke.texi (i386 and x86-64 Options): Document -mcmpxchg16b
       and -msahf options.

Thanks,
Uros.



More information about the Gcc-patches mailing list