diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-05-19 18:55:08 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-05-20 04:12:58 -0700 |
commit | 1e46a443f25d26816536c0c480211714b123a1d5 (patch) | |
tree | 9af35ded52cd47d85397bbdf0473a4e7f26bba42 /libgcc | |
parent | 2033e41b92586117760690f6862551fddaa4a59d (diff) | |
download | gcc-1e46a443f25d26816536c0c480211714b123a1d5.zip gcc-1e46a443f25d26816536c0c480211714b123a1d5.tar.gz gcc-1e46a443f25d26816536c0c480211714b123a1d5.tar.bz2 |
x86: Update VPCLMULQDQ check
Update VPCLMULQDQ check to support processors with AVX version of
VPCLMULQDQ.
PR target/91695
* config/i386/cpuinfo.c (get_available_features): Fix VPCLMULQDQ
check.
Diffstat (limited to 'libgcc')
-rw-r--r-- | libgcc/config/i386/cpuinfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgcc/config/i386/cpuinfo.c b/libgcc/config/i386/cpuinfo.c index 26c1bdc..cf5f088 100644 --- a/libgcc/config/i386/cpuinfo.c +++ b/libgcc/config/i386/cpuinfo.c @@ -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) |