builtin_target.c: Fix AVX-512VBMI detection.
authorKirill Yukhin <kyukhin@gcc.gnu.org>
Tue, 6 Oct 2015 07:55:09 +0000 (07:55 +0000)
committerKirill Yukhin <kyukhin@gcc.gnu.org>
Tue, 6 Oct 2015 07:55:09 +0000 (07:55 +0000)
gcc/testsuite/
* gcc.target/i386/builtin_target.c: Fix AVX-512VBMI detection.

From-SVN: r228515

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

index de494aa67b98aee459628d60a1758a2acd7dd6c1..dd31108e909b3c68bcea9e3683b3fe10ee758017 100644 (file)
@@ -211,7 +211,7 @@ check_features (unsigned int ecx, unsigned int edx,
        assert (__builtin_cpu_supports ("avx512dq"));
       if (ebx & bit_AVX512IFMA)
        assert (__builtin_cpu_supports ("avx512ifma"));
-      if (ebx & bit_AVX512VBMI)
+      if (ecx & bit_AVX512VBMI)
        assert (__builtin_cpu_supports ("avx512vbmi"));
     }
 }