From 4a2fc4d45e40980f75fd8c9936cda1ecf9ae2241 Mon Sep 17 00:00:00 2001 From: Kirill Yukhin Date: Tue, 6 Oct 2015 07:55:09 +0000 Subject: [PATCH] builtin_target.c: Fix AVX-512VBMI detection. gcc/testsuite/ * gcc.target/i386/builtin_target.c: Fix AVX-512VBMI detection. From-SVN: r228515 --- gcc/testsuite/gcc.target/i386/builtin_target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/i386/builtin_target.c b/gcc/testsuite/gcc.target/i386/builtin_target.c index de494aa67b9..dd31108e909 100644 --- a/gcc/testsuite/gcc.target/i386/builtin_target.c +++ b/gcc/testsuite/gcc.target/i386/builtin_target.c @@ -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")); } } -- 2.30.2