c4x.h (RTX_COSTS): Explicitly define c4x costs.
authorMichael Hayes <m.hayes@elec.canterbury.ac.nz>
Sat, 30 Jan 1999 18:36:35 +0000 (18:36 +0000)
committerMichael Hayes <m.hayes@gcc.gnu.org>
Sat, 30 Jan 1999 18:36:35 +0000 (18:36 +0000)
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

gcc/ChangeLog
gcc/config/c4x/c4x.h

index 029e3eb..41893e8 100644 (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.
index d888418..cc28fcc 100644 (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);