aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-ppc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-04-20 13:42:03 +0000
committerAlan Modra <amodra@gmail.com>2007-04-20 13:42:03 +0000
commit931774a953b8d12dc80325af47bdd4860a332818 (patch)
tree6da6bc8c612130ee534fe2186a815c8893d7f207 /gas/config/tc-ppc.c
parentf6da2ec2819291c7217ef895cd28e6f8b2a833a6 (diff)
downloadgdb-931774a953b8d12dc80325af47bdd4860a332818.zip
gdb-931774a953b8d12dc80325af47bdd4860a332818.tar.gz
gdb-931774a953b8d12dc80325af47bdd4860a332818.tar.bz2
* messages.c (as_internal_value_out_of_range): Fix typo in
error message. Return after printing domain error. * config/tc-ppc.c (ppc_insert_operand): Preserve low zero bits in max when shifting right.
Diffstat (limited to 'gas/config/tc-ppc.c')
-rw-r--r--gas/config/tc-ppc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index be745ab..5a5cb38 100644
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -1508,8 +1508,8 @@ ppc_insert_operand (insn, operand, val, file, line)
if ((operand->flags & PPC_OPERAND_SIGNED) != 0)
{
if ((operand->flags & PPC_OPERAND_SIGNOPT) == 0)
- max >>= 1;
- min = ~(max | ((max & -max) - 1)) ;
+ max = (max >> 1) & -right;
+ min = ~max & -right;
if (!ppc_obj64)
{