From 4345f8303debe1136a051fff16c81a93dae95807 Mon Sep 17 00:00:00 2001 From: anton <> Date: Tue, 4 Apr 2023 18:14:32 +0000 Subject: A refactoring back in 2016 in which magic numbers where extracted into named constants accidentally dropped an instruction causing detection of eXtended operations (XOP) on AMD hardware to break. ok miod@ tb@ --- src/lib/libcrypto/x86_64cpuid.pl | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib') diff --git a/src/lib/libcrypto/x86_64cpuid.pl b/src/lib/libcrypto/x86_64cpuid.pl index 2780b0f8ce..1b67d1110f 100644 --- a/src/lib/libcrypto/x86_64cpuid.pl +++ b/src/lib/libcrypto/x86_64cpuid.pl @@ -66,6 +66,7 @@ OPENSSL_ia32_cpuid: mov %eax,%r10d mov \$0x80000001,%eax cpuid + or %ecx,%r9d and \$IA32CAP_MASK1_AMD_XOP,%r9d # isolate AMD XOP bit or \$1,%r9d # make sure %r9d is not zero -- cgit v1.2.3-55-g6feb