Hi,
This is needed for when people are porting their aarch32 code to aarch64.
They will have #ifdef __ARM_NEON (as specified in ACLE) and their intrinsics
currently won't get used on aarch64 because it's not defined there by
default.
This patch defines __ARM_NEON so long as we are not using general regs only.
Tested on simple testcase to ensure __ARM_NEON was defined.
OK for trunk?
Cheers,
Ian
2014-02-24 Ian Bolton <ian.bol...@arm.com>
* config/aarch64/aarch64.h: Define __ARM_NEON by default if we are
not using general regs only.
diff --git a/gcc/config/aarch64/aarch64.h b/gcc/config/aarch64/aarch64.h
index 13c424c..fc21981 100644
--- a/gcc/config/aarch64/aarch64.h
+++ b/gcc/config/aarch64/aarch64.h
@@ -32,6 +32,9 @@
else \
builtin_define ("__AARCH64EL__"); \
\
+ if (!TARGET_GENERAL_REGS_ONLY) \
+ builtin_define ("__ARM_NEON"); \
+ \
switch (aarch64_cmodel) \
{ \
case AARCH64_CMODEL_TINY: \