arm.c (aapcs_vfp_allocate_return_reg): Treat all integer modes larger than TImode as TImode if NEON is not enabled.

* config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
	modes larger than TImode as TImode if NEON is not enabled.

From-SVN: r232051
This commit is contained in:
Eric Botcazou 2016-01-04 08:56:49 +00:00 committed by Eric Botcazou
parent 9e3b2fe375
commit 8db883aa82
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
* config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
modes larger than TImode as TImode if NEON is not enabled.
2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
PR target/69100

View File

@ -5846,7 +5846,10 @@ aapcs_vfp_allocate_return_reg (enum arm_pcs pcs_variant ATTRIBUTE_UNUSED,
if (!use_vfp_abi (pcs_variant, false))
return NULL;
if (mode == BLKmode || (mode == TImode && !TARGET_NEON))
if (mode == BLKmode
|| (GET_MODE_CLASS (mode) == MODE_INT
&& GET_MODE_SIZE (mode) >= GET_MODE_SIZE (TImode)
&& !TARGET_NEON))
{
int count;
machine_mode ag_mode;