summaryrefslogtreecommitdiffstats
path: root/crypto/bn
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2014-06-24 08:24:25 +0200
committerAndy Polyakov <appro@openssl.org>2014-06-27 22:55:07 +0200
commit912f08dd5ed4f68fb275f3b2db828349fcffba14 (patch)
treede456b2669094d7018a5e28fa4112bef0b7f61d9 /crypto/bn
parent1067663d852435b1adff32ec01e9b8e54d2b5896 (diff)
x86_64 assembly pack: allow clang to compile AVX code.
(cherry picked from commit ac171925ab527a55fbb27872ff69af94f7ec995b)
Diffstat (limited to 'crypto/bn')
-rwxr-xr-xcrypto/bn/asm/rsaz-avx2.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/bn/asm/rsaz-avx2.pl b/crypto/bn/asm/rsaz-avx2.pl
index 85e1ce9115..d999fd8e6d 100755
--- a/crypto/bn/asm/rsaz-avx2.pl
+++ b/crypto/bn/asm/rsaz-avx2.pl
@@ -93,6 +93,10 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$addx = ($1>=11);
}
+if (!$avx && `$ENV{CC} -v` =~ /LLVM ([3-9]\.[0-9]+)/) {
+ $avx = ($1>=3.0) + ($1>=3.1);
+}
+
open OUT,"| $^X $xlate $flavour $output";
*STDOUT = *OUT;