This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] h8300.h: Add PREDICATE_CODES.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 09 Jan 2003 08:20:00 -0500 (EST)
- Subject: [patch] h8300.h: Add PREDICATE_CODES.
Hi,
Attached is a patch to add PREDICATE_CODES.
Tested on h8300 port. Committed.
Kazu Hirata
2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.h (PREDICATE_CODES): New.
Index: h8300.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300.h,v
retrieving revision 1.130
diff -u -r1.130 h8300.h
--- h8300.h 8 Jan 2003 14:00:31 -0000 1.130
+++ h8300.h 9 Jan 2003 13:06:37 -0000
@@ -1299,4 +1299,27 @@
#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 */