diff options
author | m.hayes <m.hayes@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-01-30 18:36:35 +0000 |
---|---|---|
committer | m.hayes <m.hayes@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-01-30 18:36:35 +0000 |
commit | 14192a18a3714e097159a9ca909e323a2a9ebde8 (patch) | |
tree | e3249d71595802ddd9335e3be390728727f535a1 | |
parent | 1e6cb85a9115a7fdaace00a02cd0b337d5732932 (diff) | |
download | gcc-14192a18a3714e097159a9ca909e323a2a9ebde8.tar.gz |
Sun Jan 31 15:33:09 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
* config/c4x/c4x.h (RTX_COSTS): Explicitly define c4x costs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24928 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/c4x/c4x.h | 14 |
2 files changed, 17 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 029e3ebe023..41893e899f4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Sun Jan 31 15:33:09 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz> + + * config/c4x/c4x.h (RTX_COSTS): Explicitly define c4x costs. + Sat Jan 30 08:27:23 1999 Jeffrey A Law (law@cygnus.com) * combine.c (distribute_notes): Handle REG_EH_REGION notes. diff --git a/gcc/config/c4x/c4x.h b/gcc/config/c4x/c4x.h index d8884181d5d..cc28fcc44d0 100644 --- a/gcc/config/c4x/c4x.h +++ b/gcc/config/c4x/c4x.h @@ -1674,10 +1674,22 @@ extern void c4x_encode_section_info (); #define RTX_COSTS(RTX, CODE, OUTER_CODE) \ + case PLUS: \ + case MINUS: \ + case AND: \ + case IOR: \ + case XOR: \ + case ASHIFT: \ + case ASHIFTRT: \ + case LSHIFTRT: \ + return COSTS_N_INSNS (1); \ case MULT: \ return COSTS_N_INSNS (GET_MODE_CLASS (GET_MODE (RTX)) == MODE_FLOAT \ || TARGET_MPYI ? 1 : 14); \ - case DIV: case UDIV: case MOD: case UMOD: \ + case DIV: \ + case UDIV: \ + case MOD: \ + case UMOD: \ return COSTS_N_INSNS (GET_MODE_CLASS (GET_MODE (RTX)) == MODE_FLOAT \ ? 15 : 50); |