* [Patch, AArch64] [1/6] Implement support for Crypto -- Define TARGET_CRYPTO.
@ 2013-12-06 17:35 Tejas Belagod
2013-12-10 10:01 ` Marcus Shawcroft
0 siblings, 1 reply; 2+ messages in thread
From: Tejas Belagod @ 2013-12-06 17:35 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 361 bytes --]
Hi,
The attached patch defines TARGET_CRYPTO macro and defines builtin preprocessor
macro __ARM_FEATURE_CRYPTO.
Tested on aarch64-none-elf. OK for trunk?
Thanks,
Tejas.
Changelog
2013-12-06 Tejas Belagod <tejas.belagod@arm.com>
* config/aarch64/aarch64.h (TARGET_CRYPTO): New.
(__ARM_FEATURE_CRYPTO): Define if TARGET_CRYPTO is true.
[-- Attachment #2: crypto-flag.txt --]
[-- Type: text/plain, Size: 703 bytes --]
diff --git a/gcc/config/aarch64/aarch64.h b/gcc/config/aarch64/aarch64.h
index cead022..59f15cb 100644
--- a/gcc/config/aarch64/aarch64.h
+++ b/gcc/config/aarch64/aarch64.h
@@ -54,6 +54,8 @@
cpp_define (parse_in, "_ILP32"); \
cpp_define (parse_in, "__ILP32__"); \
} \
+ if (TARGET_CRYPTO) \
+ builtin_define ("__ARM_FEATURE_CRYPTO"); \
} while (0)
\f
@@ -180,6 +182,8 @@ extern unsigned long aarch64_isa_flags;
extern unsigned long aarch64_tune_flags;
#define AARCH64_TUNE_SLOWMUL (aarch64_tune_flags & AARCH64_FL_SLOWMUL)
+/* Crypto is an optional feature. */
+#define TARGET_CRYPTO AARCH64_ISA_CRYPTO
/* Standard register usage. */
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-12-10 10:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-06 17:35 [Patch, AArch64] [1/6] Implement support for Crypto -- Define TARGET_CRYPTO Tejas Belagod
2013-12-10 10:01 ` Marcus Shawcroft
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).