s_has_vpclmulqdq() is not checking correct bit to detect VPCLMULQDQ #1084
Labels
bug
This issue is a bug.
needs-review
This issue or pull request needs review from a core team member.
p2
This is a standard priority issue
Describe the bug
s_has_vpclmulqdq() is not checking the correct bit to detect VPCLMULQDQ.
According to the documentation it is bit 10. (code is checking bit 20).
Input Output
EAX=07H, ECX=0 ECX[bit 10] VPCLMULQDQ
EAX=07H, ECX=0 EBX[bit 16] AVX512F
EAX=07H, ECX=0 EBX[bit 31] AVX512VL
https://en.wikichip.org/wiki/x86/vpclmulqdq
Expected Behavior
s_has_vpclmulqdq() should return TRUE if the CPU supports it.
Current Behavior
s_has_vpclmulqdq() returns FALSE incorrectly.
Reproduction Steps
call s_has_vpclmulqdq() on any modern IA system.
Possible Solution
Additional Information/Context
No response
aws-c-common version used
latest mainline branch
Compiler and version used
gcc version 11.4.1 20231218
Operating System and version
CentOS9
The text was updated successfully, but these errors were encountered: