Skip to content
Snippets Groups Projects
Commit aa260854 authored by Jim Blandy's avatar Jim Blandy
Browse files

* m32c.opc (m32c_cgen_insn_supported): Use int, not CGEN_BITSET,

to represent isa sets.
parent 9a20ed6e
No related branches found
No related tags found
No related merge requests found
2005-07-16 Jim Blandy <jimb@redhat.com>
* m32c.opc (m32c_cgen_insn_supported): Use int, not CGEN_BITSET,
to represent isa sets.
2005-07-15 Jim Blandy <jimb@redhat.com> 2005-07-15 Jim Blandy <jimb@redhat.com>
* m32c.cpu, m32c.opc: Fix copyright. * m32c.cpu, m32c.opc: Fix copyright.
......
...@@ -866,14 +866,14 @@ m32c_cgen_insn_supported (CGEN_CPU_DESC cd, ...@@ -866,14 +866,14 @@ m32c_cgen_insn_supported (CGEN_CPU_DESC cd,
const CGEN_INSN *insn) const CGEN_INSN *insn)
{ {
int machs = CGEN_INSN_ATTR_VALUE (insn, CGEN_INSN_MACH); int machs = CGEN_INSN_ATTR_VALUE (insn, CGEN_INSN_MACH);
CGEN_BITSET isas = CGEN_INSN_BITSET_ATTR_VALUE (insn, CGEN_INSN_ISA); int isas = CGEN_INSN_ATTR_VALUE (insn, CGEN_INSN_ISA);
/* If attributes are absent, assume no restriction. */ /* If attributes are absent, assume no restriction. */
if (machs == 0) if (machs == 0)
machs = ~0; machs = ~0;
return (machs & cd->machs) return ((machs & cd->machs)
&& cgen_bitset_intersect_p (& isas, cd->isas); && (isas & cd->isas));
} }
/* Parse a set of registers, R0,R1,A0,A1,SB,FB. */ /* Parse a set of registers, R0,R1,A0,A1,SB,FB. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment