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
/
modes
/
asm
/
aesni-gcm-x86_64.pl
diff --git
a/crypto/modes/asm/aesni-gcm-x86_64.pl
b/crypto/modes/asm/aesni-gcm-x86_64.pl
index 3781933917227dd127352fa8d7d066804dacba13..1ac6b5b8458a8a5b164661683fa4e03bfc2aa65c 100644
(file)
--- a/
crypto/modes/asm/aesni-gcm-x86_64.pl
+++ b/
crypto/modes/asm/aesni-gcm-x86_64.pl
@@
-53,6
+53,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;