Martin Guy <martinwguy@yahoo.it> PR target/37668

Martin Guy <martinwguy@yahoo.it>
PR target/37668
* arm.c (arm_size_rtx_costs, case NEG): Don't fall through if the
result will be in an FPU register.

From-SVN: r142647
This commit is contained in:
Martin Guy 2008-12-10 15:57:18 +01:00 committed by Richard Earnshaw
parent 7f51c86c61
commit 7ce8451d98
2 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2008-12-10 Martin Guy <martinwguy@yahoo.it>
PR target/37668
* arm.c (arm_size_rtx_costs, case NEG): Don't fall through if the
result will be in an FPU register.
2008-12-10 Eric Botcazou <ebotcazou@adacore.com>
PR target/37170

View file

@ -5281,7 +5281,11 @@ arm_size_rtx_costs (rtx x, int code, int outer_code, int *total)
case NEG:
if (TARGET_HARD_FLOAT && GET_MODE_CLASS (mode) == MODE_FLOAT)
*total = COSTS_N_INSNS (1);
{
*total = COSTS_N_INSNS (1);
return false;
}
/* Fall through */
case NOT:
*total = COSTS_N_INSNS (ARM_NUM_REGS (mode));