aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorChandra Chavva <cchavva@redhat.com>2000-02-22 20:54:18 +0000
committerChandra Chavva <cchavva@redhat.com>2000-02-22 20:54:18 +0000
commit25f2196d60cbb51c7dd9b0f3bc9a8d7fa77be3ea (patch)
tree1ff601b63de8d8074c60254fb964ca16767bf1eb /gas
parent20609ff761c9816413eb58b1ab056fa688646183 (diff)
downloadgdb-25f2196d60cbb51c7dd9b0f3bc9a8d7fa77be3ea.zip
gdb-25f2196d60cbb51c7dd9b0f3bc9a8d7fa77be3ea.tar.gz
gdb-25f2196d60cbb51c7dd9b0f3bc9a8d7fa77be3ea.tar.bz2
* config/tc-d30v.c (parallel_ok): Use FLAG_NOT_WITH_ADDSUBppp to
determine if an instruction can be used in parallel with an ADDppp or SUBppp instruction.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/tc-d30v.c8
2 files changed, 10 insertions, 4 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 218e218..d52aec7 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+2000-02-19 Michael Meissner <meissner@redhat.com>
+
+ * config/tc-d30v.c (parallel_ok): Use FLAG_NOT_WITH_ADDSUBppp to
+ determine if an instruction can be used in parallel with an ADDppp
+ or SUBppp instruction.
+
2000-02-22 Andrew Haley <aph@cygnus.com>
* doc/c-mips.texi (MIPS Opts): Document -mgp32 and -mgp64.
diff --git a/gas/config/tc-d30v.c b/gas/config/tc-d30v.c
index 25c54124..c894e2b 100644
--- a/gas/config/tc-d30v.c
+++ b/gas/config/tc-d30v.c
@@ -1,5 +1,5 @@
/* tc-d30v.c -- Assembler code for the Mitsubishi D30V
- Copyright (C) 1997, 1998, 1999 Free Software Foundation.
+ Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation.
This file is part of GAS, the GNU Assembler.
@@ -1146,10 +1146,10 @@ parallel_ok (op1, insn1, op2, insn2, exec_type)
flags_used1 = op1->op->flags_used;
flags_used2 = op2->op->flags_used;
- /* ST2W/ST4HB combined with ADDppp/SUBppp is illegal. */
- if (((flags_set1 & (FLAG_MEM | FLAG_2WORD)) == (FLAG_MEM | FLAG_2WORD)
+ /* Check for illegal combinations with ADDppp/SUBppp. */
+ if (((flags_set1 & FLAG_NOT_WITH_ADDSUBppp) != 0
&& (flags_used2 & FLAG_ADDSUBppp) != 0)
- || ((flags_set2 & (FLAG_MEM | FLAG_2WORD)) == (FLAG_MEM | FLAG_2WORD)
+ || ((flags_set2 & FLAG_NOT_WITH_ADDSUBppp) != 0
&& (flags_used1 & FLAG_ADDSUBppp) != 0))
return 0;