aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1996-12-16 17:13:38 +0000
committerJeff Law <law@redhat.com>1996-12-16 17:13:38 +0000
commitd4ba37afa0a5ca12f7095b3b9b4e00c925748329 (patch)
tree347696f2697114e55b8eaf41415f0dff85e3e414
parent16d2e2b67020b95063ddcecc7556f206a5ffab30 (diff)
downloadgdb-d4ba37afa0a5ca12f7095b3b9b4e00c925748329.zip
gdb-d4ba37afa0a5ca12f7095b3b9b4e00c925748329.tar.gz
gdb-d4ba37afa0a5ca12f7095b3b9b4e00c925748329.tar.bz2
* config/tc-mn10200.c (mn10200_insert_operand): Don't
check 24bit operands for overflow. (check_operand): Likewise.
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/tc-mn10200.c10
2 files changed, 11 insertions, 5 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 99c9985..2de7a95 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+Mon Dec 16 10:08:46 1996 Jeffrey A Law (law@cygnus.com)
+
+ * config/tc-mn10200.c (mn10200_insert_operand): Don't
+ check 24bit operands for overflow.
+ (check_operand): Likewise.
+
Mon Dec 16 11:50:40 1996 Ian Lance Taylor <ian@cygnus.com>
* doc/as.texinfo (Section): Document how to use the .section
diff --git a/gas/config/tc-mn10200.c b/gas/config/tc-mn10200.c
index dbca3be..46f1610 100644
--- a/gas/config/tc-mn10200.c
+++ b/gas/config/tc-mn10200.c
@@ -649,7 +649,7 @@ keep_going:
if (match == 0)
{
next_opcode = opcode + 1;
- if (next_opcode->opcode != 0 && !strcmp(next_opcode->name, opcode->name))
+ if (!strcmp(next_opcode->name, opcode->name))
{
opcode = next_opcode;
continue;
@@ -887,8 +887,8 @@ mn10200_insert_operand (insnp, extensionp, operand, val, file, line, shift)
unsigned int line;
unsigned int shift;
{
- /* No need to check 32bit operands for a bit. */
- if (operand->bits != 32)
+ /* No need to check 24 or 32bit operands for a bit. */
+ if (operand->bits < 24)
{
long min, max;
offsetT test;
@@ -943,8 +943,8 @@ check_operand (insn, operand, val)
const struct mn10200_operand *operand;
offsetT val;
{
- /* No need to check 32bit operands for a bit. */
- if (operand->bits != 32)
+ /* No need to check 24bit or 32bit operands for a bit. */
+ if (operand->bits < 24)
{
long min, max;
offsetT test;