aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/arm/arm.c
diff options
context:
space:
mode:
authorRichard Earnshaw <rearnsha@arm.com>2013-08-08 13:34:45 +0000
committerRichard Earnshaw <rearnsha@gcc.gnu.org>2013-08-08 13:34:45 +0000
commit5efc661cc49cf7bd83fc805f91e02eefd44073e1 (patch)
treed5a230c939164600d1cbe814de486d97efbd8d7f /gcc/config/arm/arm.c
parent374cf1652d98cf5ce55b26442df1e3591081926d (diff)
downloadgcc-5efc661cc49cf7bd83fc805f91e02eefd44073e1.zip
gcc-5efc661cc49cf7bd83fc805f91e02eefd44073e1.tar.gz
gcc-5efc661cc49cf7bd83fc805f91e02eefd44073e1.tar.bz2
re PR target/56979 (ICE in output_operand: invalid operand for code 'P')
PR target/56979 * arm.c (aapcs_vfp_allocate): Decompose the argument if the suggested mode for the assignment isn't compatible with the registers required. From-SVN: r201598
Diffstat (limited to 'gcc/config/arm/arm.c')
-rw-r--r--gcc/config/arm/arm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index 8c1dce9..f731bb6 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -4544,7 +4544,9 @@ aapcs_vfp_allocate (CUMULATIVE_ARGS *pcum, enum machine_mode mode,
if (((pcum->aapcs_vfp_regs_free >> regno) & mask) == mask)
{
pcum->aapcs_vfp_reg_alloc = mask << regno;
- if (mode == BLKmode || (mode == TImode && !TARGET_NEON))
+ if (mode == BLKmode
+ || (mode == TImode && ! TARGET_NEON)
+ || ! arm_hard_regno_mode_ok (FIRST_VFP_REGNUM + regno, mode))
{
int i;
int rcount = pcum->aapcs_vfp_rcount;