This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] frv.h: Fix PREDICATE_CODES.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Cc: aldyh at redhat dot com, aoliva at redhat dot com
- Date: Sat, 02 Apr 2005 18:14:55 -0500 (EST)
- Subject: [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 }}, \