i386.c (get_builtin_code_for_version): Add support for BMI and BMI2 multiversion...
authorAllan Sandfeld Jensen <sandfeld@kde.org>
Sun, 25 Jan 2015 18:17:46 +0000 (18:17 +0000)
committerUros Bizjak <uros@gcc.gnu.org>
Sun, 25 Jan 2015 18:17:46 +0000 (19:17 +0100)
commit939911c558653f1514f1280c67f04b4bae0297c8
tree3c8bca97d45d736dc6840d8b8fed8493f6285dc3
parent5eb1643c2c252821621580cc1a5aeb42516926f0
i386.c (get_builtin_code_for_version): Add support for BMI and BMI2 multiversion functions.

gcc/ChangeLog:

* config/i386/i386.c (get_builtin_code_for_version): Add
support for BMI and BMI2 multiversion functions.
(fold_builtin_cpu): Add F_BMI and F_BMI2.

libgcc/ChangeLog:

* config/i386/cpuinfo.c (enum processor_features): Add FEATURE_BMI and
FEATURE_BMI2.
(get_available_features): Detect FEATURE_BMI and FEATURE_BMI2.

testsuite/ChangeLog:

* gcc.target/i386/funcspec-5.c: Test new multiversion targets.
* g++.dg/ext/mv17.C: Test BMI/BMI2 multiversion dispatcher.

Co-Authored-By: Uros Bizjak <ubizjak@gmail.com>
From-SVN: r220095
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/mv17.C [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/funcspec-5.c
libgcc/ChangeLog
libgcc/config/i386/cpuinfo.c