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:
Michael Hayes 1999-01-30 18:36:35 +00:00 committed by Michael Hayes
parent 4b7c585f36
commit 9acfe55c5c
2 changed files with 17 additions and 1 deletions

View File

@ -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.

View File

@ -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);