diff options
author | Bernd Schmidt <bernd.schmidt@analog.com> | 2006-09-15 11:23:09 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@gcc.gnu.org> | 2006-09-15 11:23:09 +0000 |
commit | 61066abfcd5ee6e7bd580d27bde1be11992cf6f8 (patch) | |
tree | 000e887376d2972ed876f3ccbed725de42da3932 /gcc | |
parent | 45b9a14bd655c1526f66a5b4e88e16a290ea01c9 (diff) | |
download | gcc-61066abfcd5ee6e7bd580d27bde1be11992cf6f8.zip gcc-61066abfcd5ee6e7bd580d27bde1be11992cf6f8.tar.gz gcc-61066abfcd5ee6e7bd580d27bde1be11992cf6f8.tar.bz2 |
bfin.c (bfin_rtx_costs): Handle UDIV, UMOD.
* config/bfin/bfin.c (bfin_rtx_costs): Handle UDIV, UMOD.
From-SVN: r116967
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 1 | ||||
-rw-r--r-- | gcc/config/bfin/bfin.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 51594ac..d6f892c 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 <kazu@codesourcery.com> diff --git a/gcc/config/bfin/bfin.c b/gcc/config/bfin/bfin.c index 662b9e8..f13a38c 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) |