mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-24 08:00:29 +08:00
c4x.h (RTX_COSTS): Explicitly define c4x costs.
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. From-SVN: r24928
This commit is contained in:
parent
4b7c585f36
commit
9acfe55c5c
@ -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.
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user