aboutsummaryrefslogtreecommitdiff
path: root/gcc
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
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')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/arm/arm.c4
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4410a8c..5645867 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2013-08-08 Richard Earnshaw <rearnsha@arm.com>
+
+ 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.
+
2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
PR target/58065
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;