PR 4436
	* ppc-opc.c (powerpc_operands): Correct bitm for second entry of MBE.
gas/
	PR 4436
	* config/tc-ppc.c (ppc_insert_operand): Disable range check if
	min > max.
This commit is contained in:
Alan Modra 2007-04-30 00:27:57 +00:00
parent a8bf1262d7
commit eb42fac1bb
4 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2007-04-30 Alan Modra <amodra@bigpond.net.au>
PR 4436
* config/tc-ppc.c (ppc_insert_operand): Disable range check if
min > max.
2007-04-28 Thiemo Seufer <ths@networkno.de>
* config/tc-mips.c: Fix comment.

View File

@ -1516,7 +1516,7 @@ ppc_insert_operand (insn, operand, val, file, line)
{
long min, max, right;
offsetT test;
max = operand->bitm;
right = max & -max;
min = 0;
@ -1554,8 +1554,7 @@ ppc_insert_operand (insn, operand, val, file, line)
else
test = val;
if (test < (offsetT) min
|| test > (offsetT) max
if ((min <= max && (test < (offsetT) min || test > (offsetT) max))
|| (test & (right - 1)) != 0)
as_bad_value_out_of_range (_("operand"),
test, (offsetT) min, (offsetT) max, file, line);

View File

@ -1,3 +1,8 @@
2007-04-30 Alan Modra <amodra@bigpond.net.au>
PR 4436
* ppc-opc.c (powerpc_operands): Correct bitm for second entry of MBE.
2007-04-27 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (modrm): Put reg before rm.

View File

@ -317,7 +317,7 @@ const struct powerpc_operand powerpc_operands[] =
description in opcode/ppc.h for what this means. */
#define MBE ME + 1
{ 0x1f, 6, NULL, NULL, PPC_OPERAND_OPTIONAL | PPC_OPERAND_NEXT },
{ 0xff, 0, insert_mbe, extract_mbe, 0 },
{ -1, 0, insert_mbe, extract_mbe, 0 },
/* The MB or ME field in an MD or MDS form instruction. The high
bit is wrapped to the low end. */