From: Alan Modra Date: Mon, 30 Jun 2003 04:10:48 +0000 (+0000) Subject: * config/tc-ia64.c (note_register_values): Warning fix. X-Git-Tag: ezannoni_pie-20030916-branchpoint~944 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6344efa4f29dc63c108252eb91eb73e593792176;p=platform%2Fupstream%2Fbinutils.git * config/tc-ia64.c (note_register_values): Warning fix. * config/tc-mips.c (append_insn): Likewise. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 6cfe9b3..9fcba3d 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2003-06-30 Alan Modra + + * config/tc-ia64.c (note_register_values): Warning fix. + * config/tc-mips.c (append_insn): Likewise. + 2003-06-29 Thiemo Seufer * config/tc-mips.c (mips_set_options,mips_opts): Support for diff --git a/gas/config/tc-ia64.c b/gas/config/tc-ia64.c index 077e647..24e33c0 100644 --- a/gas/config/tc-ia64.c +++ b/gas/config/tc-ia64.c @@ -8940,7 +8940,7 @@ note_register_values (idesc) else if (idesc->operands[i] == IA64_OPND_PR_ROT) { if (idesc->operands[1] & ((valueT) 1 << 43)) - qp_changemask = ~(valueT) 0xFFFFFFFFFFF | idesc->operands[1]; + qp_changemask = -((valueT) 1 << 44) | idesc->operands[1]; else qp_changemask = idesc->operands[1]; qp_changemask &= ~(valueT) 0xFFFF; diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 6bba581..28a5f12 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -2116,7 +2116,8 @@ append_insn (place, ip, address_expr, reloc_type) break; case BFD_RELOC_MIPS_HIGHEST: - tmp = (address_expr->X_add_number + 0x800080008000) >> 16; + tmp = (address_expr->X_add_number + + ((valueT) 0x8000 << 32) + 0x80008000) >> 16; tmp >>= 16; ip->insn_opcode |= (tmp >> 16) & 0xffff; break;