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/sha512-x86_64.pl | |
parent | 015364baf3328b93dbed2613e59170715a2a11a6 (diff) |
x86_64 assembly pack: allow clang to compile AVX code.
Diffstat (limited to 'crypto/sha/asm/sha512-x86_64.pl')
-rwxr-xr-x | crypto/sha/asm/sha512-x86_64.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/sha/asm/sha512-x86_64.pl b/crypto/sha/asm/sha512-x86_64.pl index 0556a8f36a..4b16c5f5b7 100755 --- a/crypto/sha/asm/sha512-x86_64.pl +++ b/crypto/sha/asm/sha512-x86_64.pl @@ -123,6 +123,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); +} + $shaext=1; ### set to zero if compiling for 1.0.1 $avx=1 if (!$shaext && $avx); |