* config/i386/i386.opt (mcx16, msahf): New options.
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Mar 2007 21:18:33 +0000 (21:18 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Mar 2007 21:18:33 +0000 (21:18 +0000)
commit92a5086bf1361073f4debb4bdcd98ca4886636f3
tree6b2026da7067b0c4a55a08b49268a5b8ff8b866f
parentd3ec4dab5361f1540557144a4c76b8b1c036ad8d
    * 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122884 138bc75d-0d04-0410-961f-82ee72b054a4
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]