summaryrefslogtreecommitdiffstats
path: root/crypto/bn/asm/x86_64-mont.pl
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2015-12-03 17:22:58 +0000
committerjkim <jkim@FreeBSD.org>2015-12-03 17:22:58 +0000
commitafd52a5fc90e70242dbb0e7d29987c976eb993e0 (patch)
treeb0284af4e4144e27eb9f39e88c53868060774b16 /crypto/bn/asm/x86_64-mont.pl
parent64cb0c902e312216cdc4c826fc0be9ba9e1bf4da (diff)
downloadFreeBSD-src-afd52a5fc90e70242dbb0e7d29987c976eb993e0.zip
FreeBSD-src-afd52a5fc90e70242dbb0e7d29987c976eb993e0.tar.gz
Import OpenSSL 1.0.2e.
Diffstat (limited to 'crypto/bn/asm/x86_64-mont.pl')
-rwxr-xr-xcrypto/bn/asm/x86_64-mont.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/bn/asm/x86_64-mont.pl b/crypto/bn/asm/x86_64-mont.pl
index 2989b58..725833d 100755
--- a/crypto/bn/asm/x86_64-mont.pl
+++ b/crypto/bn/asm/x86_64-mont.pl
@@ -68,6 +68,11 @@ if (!$addx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$addx = ($1>=12);
}
+if (!$addx && `$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
+ $addx = ($ver>=3.03);
+}
+
# int bn_mul_mont(
$rp="%rdi"; # BN_ULONG *rp,
$ap="%rsi"; # const BN_ULONG *ap,
OpenPOWER on IntegriCloud