projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86_64 assembly pack: allow clang to compile AVX code.
[openssl.git]
/
crypto
/
sha
/
asm
/
sha1-mb-x86_64.pl
diff --git
a/crypto/sha/asm/sha1-mb-x86_64.pl
b/crypto/sha/asm/sha1-mb-x86_64.pl
index 3a19029e5ee0fac30adb2705be31e682a9815342..88707a7e5d64d6c6b460fbb18da73350cfa29a93 100644
(file)
--- a/
crypto/sha/asm/sha1-mb-x86_64.pl
+++ b/
crypto/sha/asm/sha1-mb-x86_64.pl
@@
-58,6
+58,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;