adx-check.h (main): Use __get_cpuid_count.
authorUros Bizjak <ubizjak@gmail.com>
Sun, 3 Sep 2017 23:17:26 +0000 (01:17 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Sun, 3 Sep 2017 23:17:26 +0000 (01:17 +0200)
commit83982f26ba60079004a96f1b69aebb8d2bf7bb38
tree4236956a5e13c223f2a0138d3a90e43c9dfe1650
parentf36b315d1070bfaddbfcf9ee1cb08dc192aaf1c3
adx-check.h (main): Use __get_cpuid_count.

* gcc.target/i386/adx-check.h (main): Use __get_cpuid_count.
* gcc.target/i386/bmi-check.h (main): Ditto.
* gcc.target/i386/bmi2-check.h (main): Ditto.
* gcc.target/i386/rtm-check.h (main): Ditto.
* gcc.target/i386/sha-check.h (main): Ditto.
* gcc.target/i386/avx2-check.h (check_osxsave): New function.
(main): Use __get_cpuid_count.  Use check_osxsave.
* gcc.target/i386/avx512-check.h (check_osxsave): New function.
(main): Use __get_cpuid_count.  Use check_osxsave.  Reorder conditions.
* gcc.target/i386/mpx/mpx-check.h (check_osxsave): New function.
(main): Use check_osxsave.

From-SVN: r251629
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/adx-check.h
gcc/testsuite/gcc.target/i386/avx2-check.h
gcc/testsuite/gcc.target/i386/avx512-check.h
gcc/testsuite/gcc.target/i386/bmi-check.h
gcc/testsuite/gcc.target/i386/bmi2-check.h
gcc/testsuite/gcc.target/i386/mpx/mpx-check.h
gcc/testsuite/gcc.target/i386/rtm-check.h
gcc/testsuite/gcc.target/i386/sha-check.h