This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] h8300.h: Complete PREDICATE_CODES.


Hi,

Attached is a patch to complete PREDICATE_CODES by adding entries for
general_operand_src and general_operand_dst.

Tested on h8300 port.  Committed.

Kazu Hirata

2003-01-29  Kazu Hirata  <kazu@cs.umass.edu>

	* config/h8300/h8300.h (PREDICATE_CODES): Add entries for
	general_operand_src and general_operand_dst.

Index: h8300.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300.h,v
retrieving revision 1.132
diff -u -r1.132 h8300.h
--- h8300.h	28 Jan 2003 04:46:25 -0000	1.132
+++ h8300.h	29 Jan 2003 21:47:01 -0000
@@ -1270,25 +1270,29 @@
 
 /* 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}},	\
+#define PREDICATE_CODES							\
+  {"general_operand_src", {CONST_INT, CONST_DOUBLE, CONST, SYMBOL_REF,	\
+			   LABEL_REF, SUBREG, REG, MEM, ADDRESSOF}},	\
+  {"general_operand_dst", {CONST_INT, CONST_DOUBLE, CONST, SYMBOL_REF,	\
+			   LABEL_REF, SUBREG, REG, MEM, ADDRESSOF}},	\
+  {"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 */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]