Support avx512f in __builtin_cpu_supports.
authorIlya Tocar <ilya.tocar@intel.com>
Thu, 27 Nov 2014 13:51:10 +0000 (13:51 +0000)
committerIlya Tocar <tocarip@gcc.gnu.org>
Thu, 27 Nov 2014 13:51:10 +0000 (16:51 +0300)
commitc17eac85616572b7e1163cfb87d95a7875c89407
tree385214d175b54af12c5051b97d93c7d7e00ebbd0
parent1025cb6c0d6cd25f32e301c764ffa83d208e1961
Support avx512f in __builtin_cpu_supports.

gcc/

        * config/i386/cpuid.h (bit_MPX, bit_BNDREGS, bit_BNDCSR):
        Define.
        * config/i386/i386.c (get_builtin_code_for_version): Add avx512f.
        (fold_builtin_cpu): Ditto.
        * doc/extend.texi: Documment it.

gcc/testsuite/

        * g++.dg/ext/mv2.C: Add test for target ("avx512f").
        * gcc.target/i386/builtin_target.c: Ditto.

libgcc/

        * config/i386/cpuinfo.c (processor_features): Add FEATURE_AVX512F.
        * config/i386/cpuinfo.c (get_available_features): Detect it.

From-SVN: r218125
gcc/ChangeLog
gcc/config/i386/cpuid.h
gcc/config/i386/i386.c
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/mv2.C
gcc/testsuite/gcc.target/i386/builtin_target.c
libgcc/ChangeLog
libgcc/config/i386/cpuinfo.c