aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-ppc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-04-30 00:27:57 +0000
committerAlan Modra <amodra@gmail.com>2007-04-30 00:27:57 +0000
commiteb42fac1bb1f3b74b2d0b9bff7035a494c0cb9c5 (patch)
treec2d78962ea1475702e0583f701e5baafc8adacab /gas/config/tc-ppc.c
parenta8bf1262d7cc0ccb3258b375c385a438a4f2336e (diff)
downloadgdb-eb42fac1bb1f3b74b2d0b9bff7035a494c0cb9c5.zip
gdb-eb42fac1bb1f3b74b2d0b9bff7035a494c0cb9c5.tar.gz
gdb-eb42fac1bb1f3b74b2d0b9bff7035a494c0cb9c5.tar.bz2
opcodes/
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.
Diffstat (limited to 'gas/config/tc-ppc.c')
-rw-r--r--gas/config/tc-ppc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index 978f0f3..4fe9f5a 100644
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -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);