This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PING, i386]: Implement -mcmpxchg16b and -msahf options
- From: "Uros Bizjak" <ubizjak at gmail dot com>
- To: "GCC Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 13 Mar 2007 15:18:06 +0100
- Subject: [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.