aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorDavid Ung <davidu@mips.com>2005-06-15 13:21:54 +0000
committerDavid Ung <davidu@gcc.gnu.org>2005-06-15 13:21:54 +0000
commit352364de596dfb63506382fe3d821b5680f1ab00 (patch)
tree1be339db8b5d6ba66d6893d1a6a82315c9d556cd /gcc/config
parent71cb39e6a20b4fa1300040127cfc93bb3feee7ea (diff)
downloadgcc-352364de596dfb63506382fe3d821b5680f1ab00.zip
gcc-352364de596dfb63506382fe3d821b5680f1ab00.tar.gz
gcc-352364de596dfb63506382fe3d821b5680f1ab00.tar.bz2
mips.c (mips_rtx_cost_data): Add cost for 4kc, 4kp, 24k and 24kx.
* config/mips/mips.c (mips_rtx_cost_data): Add cost for 4kc, 4kp, 24k and 24kx. From-SVN: r100982
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/mips/mips.c40
1 files changed, 36 insertions, 4 deletions
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index 8680fa7..45490fd 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -755,10 +755,22 @@ static struct mips_rtx_cost_data const mips_rtx_cost_data[PROCESSOR_MAX] =
},
{ /* 4KC */
- DEFAULT_COSTS
+ SOFT_FP_COSTS,
+ COSTS_N_INSNS (6), /* int_mult_si */
+ COSTS_N_INSNS (6), /* int_mult_di */
+ COSTS_N_INSNS (36), /* int_div_si */
+ COSTS_N_INSNS (36), /* int_div_di */
+ 1, /* branch_cost */
+ 4 /* memory_latency */
},
{ /* 4KP */
- DEFAULT_COSTS
+ SOFT_FP_COSTS,
+ COSTS_N_INSNS (36), /* int_mult_si */
+ COSTS_N_INSNS (36), /* int_mult_di */
+ COSTS_N_INSNS (37), /* int_div_si */
+ COSTS_N_INSNS (37), /* int_div_di */
+ 1, /* branch_cost */
+ 4 /* memory_latency */
},
{ /* 5KC */
DEFAULT_COSTS
@@ -767,10 +779,30 @@ static struct mips_rtx_cost_data const mips_rtx_cost_data[PROCESSOR_MAX] =
DEFAULT_COSTS
},
{ /* 24k */
- DEFAULT_COSTS
+ COSTS_N_INSNS (8), /* fp_add */
+ COSTS_N_INSNS (8), /* fp_mult_sf */
+ COSTS_N_INSNS (10), /* fp_mult_df */
+ COSTS_N_INSNS (34), /* fp_div_sf */
+ COSTS_N_INSNS (64), /* fp_div_df */
+ COSTS_N_INSNS (5), /* int_mult_si */
+ COSTS_N_INSNS (5), /* int_mult_di */
+ COSTS_N_INSNS (41), /* int_div_si */
+ COSTS_N_INSNS (41), /* int_div_di */
+ 1, /* branch_cost */
+ 4 /* memory_latency */
},
{ /* 24kx */
- DEFAULT_COSTS
+ COSTS_N_INSNS (4), /* fp_add */
+ COSTS_N_INSNS (4), /* fp_mult_sf */
+ COSTS_N_INSNS (5), /* fp_mult_df */
+ COSTS_N_INSNS (17), /* fp_div_sf */
+ COSTS_N_INSNS (32), /* fp_div_df */
+ COSTS_N_INSNS (5), /* int_mult_si */
+ COSTS_N_INSNS (5), /* int_mult_di */
+ COSTS_N_INSNS (41), /* int_div_si */
+ COSTS_N_INSNS (41), /* int_div_di */
+ 1, /* branch_cost */
+ 4 /* memory_latency */
},
{ /* M4k */
DEFAULT_COSTS