From 6344efa4f29dc63c108252eb91eb73e593792176 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 30 Jun 2003 04:10:48 +0000 Subject: [PATCH] * config/tc-ia64.c (note_register_values): Warning fix. * config/tc-mips.c (append_insn): Likewise. --- gas/ChangeLog | 5 +++++ gas/config/tc-ia64.c | 2 +- gas/config/tc-mips.c | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 6cfe9b3d2f3..9fcba3d2ab6 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 077e6470d4f..24e33c06626 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 6bba581c34a..28a5f12dd36 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; -- 2.30.2