From 096ff74c550dc28557fc42818b6adbf8d7ca43a8 Mon Sep 17 00:00:00 2001 From: rearnsha Date: Wed, 10 Dec 2008 14:57:18 +0000 Subject: [PATCH] Martin Guy PR target/37668 * arm.c (arm_size_rtx_costs, case NEG): Don't fall through if the result will be in an FPU register. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142647 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/config/arm/arm.c | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d7e876707c9..57a235a8502 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-12-10 Martin Guy + + 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 PR target/37170 diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index a1cef0bd103..497564a2270 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -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)); -- 2.11.0