Fix detection of AVX512IFMA in host_detect_local_cpu
authorIlya Verbin <iverbin@gmail.com>
Wed, 31 Aug 2016 19:49:35 +0000 (19:49 +0000)
committerIlya Verbin <iverbin@gcc.gnu.org>
Wed, 31 Aug 2016 19:49:35 +0000 (19:49 +0000)
gcc/
* config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
AVX512IFMA.

From-SVN: r239908

gcc/ChangeLog
gcc/config/i386/driver-i386.c

index 29506594b8bd1638a36c7642c800d1645c07cedf..1cf6ef600ddf2db6882b289e8e6e8ff168af92bb 100644 (file)
@@ -1,3 +1,8 @@
+2016-08-31  Ilya Verbin  <iverbin@gmail.com>
+
+       * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
+       AVX512IFMA.
+
 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
 
        * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
index 22a8f2861aee8ea2e692153aa5f8d623fe07650e..6d4390f403c7738d354e219be94e2d4d73c09eb3 100644 (file)
@@ -498,7 +498,7 @@ const char *host_detect_local_cpu (int argc, const char **argv)
       has_avx512dq = ebx & bit_AVX512DQ;
       has_avx512bw = ebx & bit_AVX512BW;
       has_avx512vl = ebx & bit_AVX512VL;
-      has_avx512vl = ebx & bit_AVX512IFMA;
+      has_avx512ifma = ebx & bit_AVX512IFMA;
 
       has_prefetchwt1 = ecx & bit_PREFETCHWT1;
       has_avx512vbmi = ecx & bit_AVX512VBMI;