builtin_target.c: Fix AVX-512VBMI detection.
authorKirill Yukhin <kirill.yukhin@intel.com>
Tue, 6 Oct 2015 13:46:22 +0000 (13:46 +0000)
committerKirill Yukhin <kyukhin@gcc.gnu.org>
Tue, 6 Oct 2015 13:46:22 +0000 (13:46 +0000)
gcc/testsuite/
        * gcc.target/i386/builtin_target.c: Fix AVX-512VBMI detection.

From-SVN: r228523

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/builtin_target.c

index 8b27d2ec97f4ee8b4890663b64193d63337d3726..e7d316e738d802dbe97906bfc2225ae3cfec2475 100644 (file)
@@ -1,3 +1,7 @@
+2015-10-06  Kirill Yukhin  <kirill.yukhin@intel.com>
+
+       * gcc.target/i386/builtin_target.c: Fix AVX-512VBMI detection.
+
 2015-10-06  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/67859
index dd31108e909b3c68bcea9e3683b3fe10ee758017..8d45d83c89ab15643db3fcb94fa7aeba3fcac9d0 100644 (file)
@@ -209,7 +209,7 @@ check_features (unsigned int ecx, unsigned int edx,
        assert (__builtin_cpu_supports ("avx512bw"));
       if (ebx & bit_AVX512DQ)
        assert (__builtin_cpu_supports ("avx512dq"));
-      if (ebx & bit_AVX512IFMA)
+      if (ecx & bit_AVX512IFMA)
        assert (__builtin_cpu_supports ("avx512ifma"));
       if (ecx & bit_AVX512VBMI)
        assert (__builtin_cpu_supports ("avx512vbmi"));