This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Support for the Renesas M32C and M16C
Alan Modra <amodra@bigpond.net.au> writes:
> On Fri, Jul 15, 2005 at 06:34:26PM -0500, Jim Blandy wrote:
> > I'll take care of these. If this isn't the problem you ran into,
> > please let me know.
>
> No, the problem I had was related to use of CGEN_BITSET in cpu/m32c.opc
> m32c_cgen_insn_supported. opcodes/m32c-asm.c:m32c_cgen_insn_supported
> is quite different.
I've committed the following, which should address that specific problem.
2005-07-16 Jim Blandy <jimb@redhat.com>
* m32c.opc (m32c_cgen_insn_supported): Use int, not CGEN_BITSET,
to represent isa sets.
Index: cpu/m32c.opc
===================================================================
RCS file: /cvs/src/src/cpu/m32c.opc,v
retrieving revision 1.2
diff -c -p -r1.2 m32c.opc
*** cpu/m32c.opc 15 Jul 2005 20:31:17 -0000 1.2
--- cpu/m32c.opc 16 Jul 2005 18:40:48 -0000
*************** m32c_cgen_insn_supported (CGEN_CPU_DESC
*** 866,879 ****
const CGEN_INSN *insn)
{
int machs = CGEN_INSN_ATTR_VALUE (insn, CGEN_INSN_MACH);
! CGEN_BITSET isas = CGEN_INSN_BITSET_ATTR_VALUE (insn, CGEN_INSN_ISA);
/* If attributes are absent, assume no restriction. */
if (machs == 0)
machs = ~0;
! return (machs & cd->machs)
! && cgen_bitset_intersect_p (& isas, cd->isas);
}
/* Parse a set of registers, R0,R1,A0,A1,SB,FB. */
--- 866,879 ----
const CGEN_INSN *insn)
{
int machs = CGEN_INSN_ATTR_VALUE (insn, CGEN_INSN_MACH);
! int isas = CGEN_INSN_ATTR_VALUE (insn, CGEN_INSN_ISA);
/* If attributes are absent, assume no restriction. */
if (machs == 0)
machs = ~0;
! return ((machs & cd->machs)
! && (isas & cd->isas));
}
/* Parse a set of registers, R0,R1,A0,A1,SB,FB. */