From ff7e43ad7bf2ff340b3c889250262a4d617b7dee Mon Sep 17 00:00:00 2001 From: bernds Date: Fri, 15 Sep 2006 11:23:09 +0000 Subject: * config/bfin/bfin.c (bfin_rtx_costs): Handle UDIV, UMOD. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116967 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 1 + gcc/config/bfin/bfin.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 51594ac0cc6..d6f892c6ea6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -3,6 +3,7 @@ * params.def (PARAM_MAX_ITERATIONS_COMPUTATION_COST): New. * loop-doloop.c (doloop_optimize): Use it to limit costs of expanding the number of iterations. + * config/bfin/bfin.c (bfin_rtx_costs): Handle UDIV, UMOD. 2006-09-15 Kazu Hirata diff --git a/gcc/config/bfin/bfin.c b/gcc/config/bfin/bfin.c index 662b9e853d8..f13a38c00ab 100644 --- a/gcc/config/bfin/bfin.c +++ b/gcc/config/bfin/bfin.c @@ -2390,6 +2390,11 @@ bfin_rtx_costs (rtx x, int code, int outer_code, int *total) *total = COSTS_N_INSNS (3); return false; + case UDIV: + case UMOD: + *total = COSTS_N_INSNS (32); + return true; + case VEC_CONCAT: case VEC_SELECT: if (outer_code == SET) -- cgit v1.2.1