diff options
author | Martin Guy <martinwguy@yahoo.it> | 2008-12-10 15:57:18 +0100 |
---|---|---|
committer | Richard Earnshaw <rearnsha@gcc.gnu.org> | 2008-12-10 14:57:18 +0000 |
commit | 7ce8451d98680124fe012365631ca51d430e9b40 (patch) | |
tree | f48cd0ce8891a0ab5c0b546fb32e43d0acc81daa /gcc/config/arm | |
parent | 7f51c86c61009127134c9c44ba6f724f607dc774 (diff) | |
download | gcc-7ce8451d98680124fe012365631ca51d430e9b40.zip gcc-7ce8451d98680124fe012365631ca51d430e9b40.tar.gz gcc-7ce8451d98680124fe012365631ca51d430e9b40.tar.bz2 |
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
Diffstat (limited to 'gcc/config/arm')
-rw-r--r-- | gcc/config/arm/arm.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index a1cef0b..497564a 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)); |