summaryrefslogtreecommitdiffstats
path: root/crypto/bn/asm/rsaz-avx2.pl
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2020-01-15 21:14:05 +0100
committerRichard Levitte <levitte@openssl.org>2020-01-17 08:55:45 +0100
commit9bb3e5fd87905e3e9f5f7edcc2e22d98360510ab (patch)
treea35e24fe39e018bd28f1d11665b22cfa78cbd236 /crypto/bn/asm/rsaz-avx2.pl
parent98706c5a8cb2b0a1649add98125289db7da04861 (diff)
For all assembler scripts where it matters, recognise clang > 9.x
Fixes #10853 Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/10855)
Diffstat (limited to 'crypto/bn/asm/rsaz-avx2.pl')
-rwxr-xr-xcrypto/bn/asm/rsaz-avx2.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bn/asm/rsaz-avx2.pl b/crypto/bn/asm/rsaz-avx2.pl
index 66822abed4..b68a8d61c7 100755
--- a/crypto/bn/asm/rsaz-avx2.pl
+++ b/crypto/bn/asm/rsaz-avx2.pl
@@ -67,7 +67,7 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$addx = ($1>=11);
}
-if (!$avx && `$ENV{CC} -v 2>&1` =~ /((?:^clang|LLVM) version|based on LLVM) ([3-9])\.([0-9]+)/) {
+if (!$avx && `$ENV{CC} -v 2>&1` =~ /((?:^clang|LLVM) version|based on LLVM) ([0-9]+)\.([0-9]+)/) {
my $ver = $2 + $3/100.0; # 3.1->3.01, 3.10->3.10
$avx = ($ver>=3.0) + ($ver>=3.01);
$addx = ($ver>=3.03);