From 3896c469d237119ce0d9b6056979eb503c771231 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 2 May 2007 11:24:17 +0000 Subject: [PATCH] gas/ PR 4448 * config/tc-ppc.c (ppc_insert_operand): Don't increase min for PPC_OPERAND_PLUS1. include/opcode/ * ppc.h (PPC_OPERAND_PLUS1): Update comment. --- gas/ChangeLog | 6 ++++++ gas/config/tc-ppc.c | 5 +---- include/opcode/ChangeLog | 4 ++++ include/opcode/ppc.h | 2 +- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index e5d9b84c46..f0a4faafc2 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2007-05-02 Alan Modra + + PR 4448 + * config/tc-ppc.c (ppc_insert_operand): Don't increase min for + PPC_OPERAND_PLUS1. + 2007-05-01 H.J. Lu * config/tc-i386.c (match_template): Check suffix for crc32 in diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index 4fe9f5aec8..96f165c2b4 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -1544,10 +1544,7 @@ ppc_insert_operand (insn, operand, val, file, line) } if ((operand->flags & PPC_OPERAND_PLUS1) != 0) - { - max++; - min++; - } + max++; if ((operand->flags & PPC_OPERAND_NEGATIVE) != 0) test = - val; diff --git a/include/opcode/ChangeLog b/include/opcode/ChangeLog index 0c304a72ff..c8ef8e9eb0 100644 --- a/include/opcode/ChangeLog +++ b/include/opcode/ChangeLog @@ -1,3 +1,7 @@ +2007-05-02 Alan Modra + + * ppc.h (PPC_OPERAND_PLUS1): Update comment. + 2007-04-23 Nathan Sidwell * m68k.h (mcfisa_c): New. diff --git a/include/opcode/ppc.h b/include/opcode/ppc.h index 4df543043f..6771856fd5 100644 --- a/include/opcode/ppc.h +++ b/include/opcode/ppc.h @@ -294,7 +294,7 @@ extern const unsigned int num_powerpc_operands; /* This operand is for the DQ field in a DQ form instruction. */ #define PPC_OPERAND_DQ (0x8000) -/* Valid range of operand is 1..n rather than 0..n-1. */ +/* Valid range of operand is 0..n rather than 0..n-1. */ #define PPC_OPERAND_PLUS1 (0x10000) /* The POWER and PowerPC assemblers use a few macros. We keep them -- 2.34.1