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] frv.h: Fix PREDICATE_CODES.


Hi,

Attached is a patch to fix PREDICATE_CODES.

gpr_or_int12_operand calls got12_operand, which expects CONST.
However, the entry for gpr_or_int12_operand in PREDICATE_CODES does
not have CONST listed.

Without this patch, the straightforward conversions to predicates.md
would fail, causing an unrecognized insn.

Built frv-elf.  OK to apply?

Kazu Hirata

2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>

	* config/frv/frv.h (PREDICATE_CODES): Add CONST to
	gpr_or_int12_operand.

Index: frv.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/frv/frv.h,v
retrieving revision 1.61
diff -u -d -p -r1.61 frv.h
--- frv.h	1 Apr 2005 03:42:45 -0000	1.61
+++ frv.h	2 Apr 2005 23:14:35 -0000
@@ -2781,7 +2781,7 @@ do {                                    
   { "frv_load_operand",			{ REG, SUBREG, MEM }},		\
   { "gpr_no_subreg_operand",		{ REG }},			\
   { "gpr_or_fpr_operand",		{ REG, SUBREG }},		\
-  { "gpr_or_int12_operand",		{ REG, SUBREG, CONST_INT }},	\
+  { "gpr_or_int12_operand",		{ REG, SUBREG, CONST_INT, CONST }},	\
   { "gpr_fpr_or_int12_operand",		{ REG, SUBREG, CONST_INT }},	\
   { "gpr_or_int10_operand",		{ REG, SUBREG, CONST_INT }},	\
   { "gpr_or_int_operand",		{ REG, SUBREG, CONST_INT }},	\


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