diff options
| author | rearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-12-10 14:57:18 +0000 |
|---|---|---|
| committer | rearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-12-10 14:57:18 +0000 |
| commit | 096ff74c550dc28557fc42818b6adbf8d7ca43a8 (patch) | |
| tree | f48cd0ce8891a0ab5c0b546fb32e43d0acc81daa | |
| parent | c3cdf4bfb68720d90294238ec1ae3e3a6258b66d (diff) | |
| download | ppe42-gcc-096ff74c550dc28557fc42818b6adbf8d7ca43a8.tar.gz ppe42-gcc-096ff74c550dc28557fc42818b6adbf8d7ca43a8.zip | |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142647 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 6 | ||||
| -rw-r--r-- | gcc/config/arm/arm.c | 6 |
2 files changed, 11 insertions, 1 deletions
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 <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 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)); |

