i386.opt (mcx16, msahf): New options.
authorUros Bizjak <ubizjak@gmail.com>
Tue, 13 Mar 2007 21:18:33 +0000 (22:18 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Tue, 13 Mar 2007 21:18:33 +0000 (22:18 +0100)
commit5be6cb59b3e5ab7b69534841be42f2d6e9fb1340
tree6b2026da7067b0c4a55a08b49268a5b8ff8b866f
parentd265b0b1c24d13c3dfdf830877fa8edf87e8c15d
i386.opt (mcx16, msahf): New options.

        * config/i386/i386.opt (mcx16, 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 cx16 and lahf_lm cpuid bits.
        Output -mcx16 and -msahf options when corresponding bit is set.

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

testsuite/ChangeLog

        * testsuite/gcc.target/i386/cmpxchg16b-1.c: New test.

From-SVN: r122884
gcc/ChangeLog
gcc/config/i386/driver-i386.c
gcc/config/i386/i386.c
gcc/config/i386/i386.h
gcc/config/i386/i386.opt
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/cmpxchg16b-1.c [new file with mode: 0644]