diff options
author | Julian Brown <julian@codesourcery.com> | 2009-06-03 16:01:38 +0000 |
---|---|---|
committer | Julian Brown <jules@gcc.gnu.org> | 2009-06-03 16:01:38 +0000 |
commit | 2e94c12d07637be82bccf407a306fac33902c59c (patch) | |
tree | 6c2208e9dbab69081766e90d77db34932a4ecdf7 /gcc | |
parent | 3111cce0d99ddd6414f38042cd3e19aeee2f9cc4 (diff) | |
download | gcc-2e94c12d07637be82bccf407a306fac33902c59c.zip gcc-2e94c12d07637be82bccf407a306fac33902c59c.tar.gz gcc-2e94c12d07637be82bccf407a306fac33902c59c.tar.bz2 |
arm.c (arm_hard_regno_mode_ok): Permit values of four words or less (including TImode) in core registers.
* config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
words or less (including TImode) in core registers.
From-SVN: r148135
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/arm/arm.c | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d426129..c1e05ca 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-06-03 Julian Brown <julian@codesourcery.com> + + * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four + words or less (including TImode) in core registers. + 2009-06-03 Richard Guenther <rguenther@suse.de> PR middle-end/40328 diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 24a94a6..cf3ef23 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -14741,13 +14741,13 @@ arm_hard_regno_mode_ok (unsigned int regno, enum machine_mode mode) return VALID_IWMMXT_REG_MODE (mode); } - /* We allow any value to be stored in the general registers. + /* We allow almost any value to be stored in the general registers. Restrict doubleword quantities to even register pairs so that we can - use ldrd. Do not allow Neon structure opaque modes in general registers; - they would use too many. */ + use ldrd. Do not allow very large Neon structure opaque modes in + general registers; they would use too many. */ if (regno <= LAST_ARM_REGNUM) return !(TARGET_LDRD && GET_MODE_SIZE (mode) > 4 && (regno & 1) != 0) - && !VALID_NEON_STRUCT_MODE (mode); + && ARM_NUM_REGS (mode) <= 4; if (regno == FRAME_POINTER_REGNUM || regno == ARG_POINTER_REGNUM) |