mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
tweak m32rx sanitization
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/* tc-m32r.c -- Assembler for the Mitsubishi M32R/X.
|
||||
Copyright (C) 1996, 1997 Free Software Foundation.
|
||||
Copyright (C) 1996, 1997, 1998 Free Software Foundation.
|
||||
|
||||
This file is part of GAS, the GNU Assembler.
|
||||
|
||||
@ -24,9 +24,6 @@
|
||||
#include "subsegs.h"
|
||||
#include "cgen-opc.h"
|
||||
|
||||
#include "../../opcodes/m32r-asm.c"
|
||||
#include "../../opcodes/m32r-asm.in"
|
||||
|
||||
/* Non-null if last insn was a 16 bit insn on a 32 bit boundary
|
||||
(i.e. was the first of two 16 bit insns). */
|
||||
static const CGEN_INSN * prev_insn = NULL;
|
||||
@ -419,6 +416,7 @@ md_assemble (str)
|
||||
return;
|
||||
}
|
||||
|
||||
/* start-sanitize-m32rx */
|
||||
/* Check to see if this is an allowable parallel insn. */
|
||||
if (CGEN_INSN_ATTR (prev_insn, CGEN_INSN_PIPE) == PIPE_NONE)
|
||||
{
|
||||
@ -426,7 +424,6 @@ md_assemble (str)
|
||||
return;
|
||||
}
|
||||
|
||||
/* start-sanitize-m32rx */
|
||||
if (! enable_m32rx &&
|
||||
CGEN_INSN_ATTR (prev_insn, CGEN_INSN_MACH) == MACH_M32RX)
|
||||
{
|
||||
@ -473,8 +470,6 @@ md_assemble (str)
|
||||
return;
|
||||
}
|
||||
}
|
||||
/* end-sanitize-m32rx */
|
||||
|
||||
/* Check to see if this is an allowable parallel insn. */
|
||||
if (CGEN_INSN_ATTR (insn, CGEN_INSN_PIPE) == PIPE_NONE)
|
||||
{
|
||||
@ -489,6 +484,8 @@ md_assemble (str)
|
||||
as_bad ("'%s': both instructions use the same execution pipeline", str2);
|
||||
return;
|
||||
}
|
||||
/* end-sanitize-m32rx */
|
||||
|
||||
#if 0
|
||||
/* Check that the instructions do not write to the same destination register. */
|
||||
if (writes_to_dest_reg (insn)
|
||||
|
Reference in New Issue
Block a user