modes/asm/ghash-x86_64.pl: refine GNU assembler version detection.
[openssl.git] / crypto / modes / asm / ghash-x86_64.pl
index 4ff2d39aa7b281701eeb440fadc63c7990c9e2ca..f889f2018789fb6e233dd1d07ef0c78cfa8649f4 100644 (file)
@@ -92,7 +92,7 @@ die "can't locate x86_64-xlate.pl";
 
 if (`$ENV{CC} -Wa,-v -c -o /dev/null -x assembler /dev/null 2>&1`
                =~ /GNU assembler version ([2-9]\.[0-9]+)/) {
-       $avx = ($1>=2.19) + ($1>=2.22);
+       $avx = ($1>=2.20) + ($1>=2.22);
 }
 
 if (!$avx && $win64 && ($flavour =~ /nasm/ || $ENV{ASM} =~ /nasm/) &&