diff options
author | Mantas Mikaitis <mantas.mikaitis@arm.com> | 2015-02-05 16:58:58 +0000 |
---|---|---|
committer | Alan Lawrence <alalaw01@gcc.gnu.org> | 2015-02-05 16:58:58 +0000 |
commit | 29e1d31b2cf2720fad010f1079b679c5edfb206f (patch) | |
tree | 3af2ded9211f056e18c3f33bceaa37292a578673 /gcc/config/arm | |
parent | 06fa4f005f4432d90148d37bcce2752dd922e947 (diff) | |
download | gcc-29e1d31b2cf2720fad010f1079b679c5edfb206f.tar.gz |
[ARM] __ARM_FP & __ARM_NEON_FP defined when -march=armv7-m
gcc/:
* config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
define to zero if !TARGET_NEON.
(TARGET_CPU_CPP_BUILTINS): Added second condition before defining
__ARM_FP macro.
gcc/testsuite/:
* gcc.target/arm/macro_defs0.c: New test.
* gcc.target/arm/macro_defs1.c: New test.
* gcc.target/arm/macro_defs2.c: New test.
From-SVN: r220456
Diffstat (limited to 'gcc/config/arm')
-rw-r--r-- | gcc/config/arm/arm.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h index 831d6e17d1f..297dfe1ae67 100644 --- a/gcc/config/arm/arm.h +++ b/gcc/config/arm/arm.h @@ -2360,17 +2360,17 @@ extern int making_const_table; point types. Where bit 1 indicates 16-bit support, bit 2 indicates 32-bit support, bit 3 indicates 64-bit support. */ #define TARGET_ARM_FP \ - (TARGET_VFP_SINGLE ? 4 \ - : (TARGET_VFP_DOUBLE ? (TARGET_FP16 ? 14 : 12) : 0)) + (!TARGET_SOFT_FLOAT ? (TARGET_VFP_SINGLE ? 4 \ + : (TARGET_VFP_DOUBLE ? (TARGET_FP16 ? 14 : 12) : 0)) \ + : 0) /* Set as a bit mask indicating the available widths of floating point types for hardware NEON floating point. This is the same as TARGET_ARM_FP without the 64-bit bit set. */ -#ifdef TARGET_NEON -#define TARGET_NEON_FP \ - (TARGET_ARM_FP & (0xff ^ 0x08)) -#endif +#define TARGET_NEON_FP \ + (TARGET_NEON ? (TARGET_ARM_FP & (0xff ^ 0x08)) \ + : 0) /* The maximum number of parallel loads or stores we support in an ldm/stm instruction. */ |