(m32rx support): only include #ifdef HAVE_CPU_M32RX.
\f
/* start-sanitize-m32rx */
static void
\f
/* start-sanitize-m32rx */
static void
+allow_m32rx (on)
+ int on;
/* end-sanitize-m32rx */
}
/* end-sanitize-m32rx */
}
/* Returns non zero if the given instruction writes to a destination register. */
static int
writes_to_dest_reg (insn)
/* Returns non zero if the given instruction writes to a destination register. */
static int
writes_to_dest_reg (insn)
+
+#endif /* HAVE_CPU_M32RX */
+
cgen_asm_init_parse ();
/* start-sanitize-m32rx */
cgen_asm_init_parse ();
/* start-sanitize-m32rx */
/* Look for a parallel instruction seperator. */
if ((str2 = strstr (str, "||")) != NULL)
{
assemble_parallel_insn (str, str2);
return;
}
/* Look for a parallel instruction seperator. */
if ((str2 = strstr (str, "||")) != NULL)
{
assemble_parallel_insn (str, str2);
return;
}
/* end-sanitize-m32rx */
insn.insn = CGEN_SYM (assemble_insn) (str, & insn.fields, insn.buffer, & errmsg);
/* end-sanitize-m32rx */
insn.insn = CGEN_SYM (assemble_insn) (str, & insn.fields, insn.buffer, & errmsg);
}
/* start-sanitize-m32rx */
}
/* start-sanitize-m32rx */
if (! enable_m32rx && CGEN_INSN_ATTR (insn.insn, CGEN_INSN_MACH) == (1 << MACH_M32RX))
{
as_bad ("instruction '%s' is for the M32RX only", str);
return;
}
if (! enable_m32rx && CGEN_INSN_ATTR (insn.insn, CGEN_INSN_MACH) == (1 << MACH_M32RX))
{
as_bad ("instruction '%s' is for the M32RX only", str);
return;
}
/* end-sanitize-m32rx */
if (CGEN_INSN_BITSIZE (insn.insn) == 32)
/* end-sanitize-m32rx */
if (CGEN_INSN_BITSIZE (insn.insn) == 32)
{
/* start-sanitize-m32rx */
/* start-sanitize-phase2-m32rx */
{
/* start-sanitize-m32rx */
/* start-sanitize-phase2-m32rx */
/* Look to see if this instruction can be combined with the
previous instruction to make one, parallel, 32 bit instruction.
If the previous instruction (potentially) changed the flow of
/* Look to see if this instruction can be combined with the
previous instruction to make one, parallel, 32 bit instruction.
If the previous instruction (potentially) changed the flow of
else if (can_make_parallel (& insn, & prev_insn.insn) == NULL)
swap = true;
}
else if (can_make_parallel (& insn, & prev_insn.insn) == NULL)
swap = true;
}
/* end-sanitize-phase2-m32rx */
/* end-sanitize-m32rx */
/* end-sanitize-phase2-m32rx */
/* end-sanitize-m32rx */
/* start-sanitize-m32rx */
/* start-sanitize-phase2-m32rx */
/* start-sanitize-m32rx */
/* start-sanitize-phase2-m32rx */
/* Record where this instruction was assembled. */
prev_insn.addr = insn.addr;
prev_insn.frag = insn.frag;
/* Record where this instruction was assembled. */
prev_insn.addr = insn.addr;
prev_insn.frag = insn.frag;
/* end-sanitize-m32rx */
/* If the insn needs the following one to be on a 32 bit boundary
/* end-sanitize-m32rx */
/* If the insn needs the following one to be on a 32 bit boundary