* config/h8300/h8300.h (PREDICATE_CODES): New.
authorKazu Hirata <kazu@cs.umass.edu>
Thu, 9 Jan 2003 13:19:58 +0000 (13:19 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Thu, 9 Jan 2003 13:19:58 +0000 (13:19 +0000)
From-SVN: r61109

gcc/ChangeLog
gcc/config/h8300/h8300.h

index 6b58b1d2c30e1c9bf679b3b691ebb3623b09cb08..d0c1d65a74d06ee3f883e48586f084e5c527977a 100644 (file)
@@ -1,3 +1,7 @@
+2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/h8300.h (PREDICATE_CODES): New.
+
 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
 
        * config/h8300/h8300.md (*addsi3_upper): New.
index 3dc13dea98a475496f12f26eb22eaedf14b959ea..d6148f35fba40a7b4bb7bb7fb24b8f736ee6d38a 100644 (file)
@@ -1299,4 +1299,27 @@ struct cum_arg
 
 #define MOVE_RATIO 3
 
+/* Define the codes that are matched by predicates in h8300.c.  */
+
+#define PREDICATE_CODES                                        \
+  {"single_one_operand", {CONST_INT}},                 \
+  {"single_zero_operand", {CONST_INT}},                        \
+  {"call_insn_operand", {MEM}},                                \
+  {"small_call_insn_operand", {MEM}},                  \
+  {"jump_address_operand", {REG, MEM}},                        \
+  {"two_insn_adds_subs_operand", {CONST_INT}},         \
+  {"bit_operand", {REG, SUBREG, MEM}},                 \
+  {"bit_memory_operand", {MEM}},                       \
+  {"stack_pointer_operand", {REG}},                    \
+  {"const_int_le_2_operand", {CONST_INT}},             \
+  {"const_int_le_6_operand", {CONST_INT}},             \
+  {"const_int_gt_2_operand", {CONST_INT}},             \
+  {"const_int_ge_8_operand", {CONST_INT}},             \
+  {"const_int_qi_operand", {CONST_INT}},               \
+  {"const_int_hi_operand", {CONST_INT}},               \
+  {"incdec_operand", {CONST_INT}},                     \
+  {"bit_operator", {XOR, AND, IOR}},                   \
+  {"nshift_operator", {ASHIFTRT, LSHIFTRT, ASHIFT}},   \
+  {"eqne_operator", {EQ, NE}},
+
 #endif /* ! GCC_H8300_H */