From 352364de596dfb63506382fe3d821b5680f1ab00 Mon Sep 17 00:00:00 2001 From: David Ung Date: Wed, 15 Jun 2005 13:21:54 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/mips/mips.c | 40 ++++++++++++++++++++++++++++++++++++---- 2 files changed, 41 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e8aba50d7d8..03e034fb578 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-06-15 David Ung + + * config/mips/mips.c (mips_rtx_cost_data): Add cost for 4kc, 4kp, + 24k and 24kx. + 2005-06-15 Richard Sandiford * doc/invoke.texi (-mips16): Fix typo. diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 8680fa7eb33..45490fd970e 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 -- 2.30.2