x86cpuid.pl: don't punish "last-year" OSes on "this-year" CPUs.
authorAndy Polyakov <appro@openssl.org>
Sat, 5 Nov 2011 10:44:25 +0000 (10:44 +0000)
committerAndy Polyakov <appro@openssl.org>
Sat, 5 Nov 2011 10:44:25 +0000 (10:44 +0000)
PR: 2633

crypto/x86cpuid.pl

index d3d67c81d1865c56abdc1430b23a116165b093d1..4073d4d77303491cd1795624543213dc10eb8cae 100644 (file)
@@ -122,7 +122,7 @@ for (@ARGV) { $sse2=1 if (/-DOPENSSL_IA32_SSE2/); }
        &bt     ("ecx",26);             # check XSAVE bit
        &jnc    (&label("done"));
        &bt     ("ecx",27);             # check OSXSAVE bit
-       &jnc    (&label("clear_xmm"));
+       &jnc    (&label("clear_avx"));
        &xor    ("ecx","ecx");
        &data_byte(0x0f,0x01,0xd0);     # xgetbv
        &and    ("eax",6);