crypto/x86*cpuid.pl: move extended feature detection.
authorAndy Polyakov <appro@openssl.org>
Sun, 12 Mar 2017 13:45:06 +0000 (14:45 +0100)
committerAndy Polyakov <appro@openssl.org>
Mon, 13 Mar 2017 17:43:32 +0000 (18:43 +0100)
commit7eba15f274f6e241bc3c9077b0427ec39a630e3d
tree1c4b959041bb864f84dc962e44448cc6608ce97a
parent7b64c79bd5d3c1183b989de70170b0052b1d6c9e
crypto/x86*cpuid.pl: move extended feature detection.

Exteneded feature flags were not pulled on AMD processors, as result
a number of extensions were effectively masked on Ryzen. Original fix
for x86_64cpuid.pl addressed this problem, but messed up processor
vendor detection. This fix moves extended feature detection past
basic feature detection where it belongs. 32-bit counterpart is
harmonized too.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit 1aed5e1ac28790cc915ad03e86e2d5e896a4ea13)
crypto/x86_64cpuid.pl
crypto/x86cpuid.pl