summaryrefslogtreecommitdiffstats
path: root/crypto/sha/asm/sha256-mb-x86_64.pl
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2014-06-24 08:24:25 +0200
committerAndy Polyakov <appro@openssl.org>2014-06-24 08:24:25 +0200
commitac171925ab527a55fbb27872ff69af94f7ec995b (patch)
treec845715c38335465dd8fa801e362a69c0e391788 /crypto/sha/asm/sha256-mb-x86_64.pl
parent015364baf3328b93dbed2613e59170715a2a11a6 (diff)
x86_64 assembly pack: allow clang to compile AVX code.
Diffstat (limited to 'crypto/sha/asm/sha256-mb-x86_64.pl')
-rw-r--r--crypto/sha/asm/sha256-mb-x86_64.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/sha/asm/sha256-mb-x86_64.pl b/crypto/sha/asm/sha256-mb-x86_64.pl
index ec87017032..a332eef0a3 100644
--- a/crypto/sha/asm/sha256-mb-x86_64.pl
+++ b/crypto/sha/asm/sha256-mb-x86_64.pl
@@ -59,6 +59,10 @@ if (!$avx && $win64 && ($flavour =~ /masm/ || $ENV{ASM} =~ /ml64/) &&
$avx = ($1>=10) + ($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;