diff options
author | Kenny Root <kroot@google.com> | 2015-04-18 14:27:55 -0700 |
---|---|---|
committer | Kenny Root <kroot@google.com> | 2015-04-18 14:27:55 -0700 |
commit | d18b6331a1802438e5d37fb2a397ae766dbdeb53 (patch) | |
tree | 1607ee5b147735bd30e335970a782ce18b5a52fc /src/crypto/modes/asm/ghashv8-armx.pl | |
parent | 49977fa7e3048d41518223b704c90f1b82588904 (diff) | |
download | external_boringssl-d18b6331a1802438e5d37fb2a397ae766dbdeb53.zip external_boringssl-d18b6331a1802438e5d37fb2a397ae766dbdeb53.tar.gz external_boringssl-d18b6331a1802438e5d37fb2a397ae766dbdeb53.tar.bz2 |
Use a different arch feature indicator for clang
Clang doesn't currently understand the ".arch armv8-a+crypto" syntax and
instead requires the specification of ".arch_extension" to enable the
crypto functionality.
Change-Id: Ib7bab562055e7c7925a47030044479ec172d0a34
Diffstat (limited to 'src/crypto/modes/asm/ghashv8-armx.pl')
-rw-r--r-- | src/crypto/modes/asm/ghashv8-armx.pl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/crypto/modes/asm/ghashv8-armx.pl b/src/crypto/modes/asm/ghashv8-armx.pl index 54a1ac4..40dca96 100644 --- a/src/crypto/modes/asm/ghashv8-armx.pl +++ b/src/crypto/modes/asm/ghashv8-armx.pl @@ -44,7 +44,14 @@ $code=<<___; .text ___ -$code.=".arch armv8-a+crypto\n" if ($flavour =~ /64/); +$code.=<<___ if ($flavour =~ /64/); +#ifdef __clang__ +.arch armv8-a +.arch_extension crypto +#else +.arch armv8-a+crypto +#endif +___ $code.=".fpu neon\n.code 32\n" if ($flavour !~ /64/); $code.=<<___; |