This is the mail archive of the gcc-patches@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]

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


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.


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