projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc4b2bf
)
bn/asm/rsaz-avx2.pl: harmonize clang version detection.
author
Andy Polyakov
<appro@openssl.org>
Sat, 16 Jun 2018 14:22:19 +0000
(16:22 +0200)
committer
Andy Polyakov
<appro@openssl.org>
Mon, 18 Jun 2018 18:04:27 +0000
(20:04 +0200)
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6499)
(cherry picked from commit
9e97f61dec312084abe03226e5c962d818c9fc2b
)
crypto/bn/asm/rsaz-avx2.pl
patch
|
blob
|
history
diff --git
a/crypto/bn/asm/rsaz-avx2.pl
b/crypto/bn/asm/rsaz-avx2.pl
index 2b3f8b0e21ecef41d57d199e1173ba0dc6f700c2..d4124a8f6389bd2c94540b57b634540f62d20a3b 100755
(executable)
--- a/
crypto/bn/asm/rsaz-avx2.pl
+++ b/
crypto/bn/asm/rsaz-avx2.pl
@@
-97,7
+97,7
@@
if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$addx = ($1>=11);
}
-if (!$avx && `$ENV{CC} -v 2>&1` =~ /(
^clang
version|based on LLVM) ([3-9])\.([0-9]+)/) {
+if (!$avx && `$ENV{CC} -v 2>&1` =~ /(
(?:^clang|LLVM)
version|based on LLVM) ([3-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);