mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-22 03:47:02 -05:00
x86: Update VPCLMULQDQ check
Update VPCLMULQDQ check to support processors with AVX version of
VPCLMULQDQ.
Backport from master
PR target/91695
* config/i386/cpuinfo.c (get_available_features): Fix VPCLMULQDQ
check.
(cherry picked from commit 1e46a443f2)
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
2020-05-20 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
Backport from master
|
||||
2020-05-20 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR target/91695
|
||||
* config/i386/cpuinfo.c (get_available_features): Fix VPCLMULQDQ
|
||||
check.
|
||||
|
||||
2020-05-19 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
Backport from master
|
||||
|
||||
@@ -346,6 +346,8 @@ get_available_features (unsigned int ecx, unsigned int edx,
|
||||
{
|
||||
if (ebx & bit_AVX2)
|
||||
set_feature (FEATURE_AVX2);
|
||||
if (ecx & bit_VPCLMULQDQ)
|
||||
set_feature (FEATURE_VPCLMULQDQ);
|
||||
}
|
||||
if (ebx & bit_BMI2)
|
||||
set_feature (FEATURE_BMI2);
|
||||
@@ -373,8 +375,6 @@ get_available_features (unsigned int ecx, unsigned int edx,
|
||||
set_feature (FEATURE_AVX512VBMI);
|
||||
if (ecx & bit_AVX512VBMI2)
|
||||
set_feature (FEATURE_AVX512VBMI2);
|
||||
if (ecx & bit_VPCLMULQDQ)
|
||||
set_feature (FEATURE_VPCLMULQDQ);
|
||||
if (ecx & bit_AVX512VNNI)
|
||||
set_feature (FEATURE_AVX512VNNI);
|
||||
if (ecx & bit_AVX512BITALG)
|
||||
|
||||
Reference in New Issue
Block a user