diff options
author | Andy Polyakov <appro@openssl.org> | 2014-06-24 08:24:25 +0200 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2014-06-24 08:24:25 +0200 |
commit | ac171925ab527a55fbb27872ff69af94f7ec995b (patch) | |
tree | c845715c38335465dd8fa801e362a69c0e391788 /crypto/sha/asm/sha256-mb-x86_64.pl | |
parent | 015364baf3328b93dbed2613e59170715a2a11a6 (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.pl | 4 |
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; |