aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>1998-01-16 00:14:59 +0000
committerDoug Evans <dje@google.com>1998-01-16 00:14:59 +0000
commit9121b102149ac77f919934e443f1e93d31574f43 (patch)
treea2fb6c800430ba230d50a120513fcb3392d9b6de /gas
parent43e941fd881913f5f06302532dcea9beeaf79b7b (diff)
downloadgdb-9121b102149ac77f919934e443f1e93d31574f43.zip
gdb-9121b102149ac77f919934e443f1e93d31574f43.tar.gz
gdb-9121b102149ac77f919934e443f1e93d31574f43.tar.bz2
tweak m32rx sanitization
Diffstat (limited to 'gas')
-rw-r--r--gas/config/tc-m32r.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/gas/config/tc-m32r.c b/gas/config/tc-m32r.c
index 5053eac..c717de5 100644
--- a/gas/config/tc-m32r.c
+++ b/gas/config/tc-m32r.c
@@ -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)