diff options
author | Alan Modra <amodra@gmail.com> | 2003-06-30 04:10:48 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2003-06-30 04:10:48 +0000 |
commit | 6344efa4f29dc63c108252eb91eb73e593792176 (patch) | |
tree | 616c4ec77487d4dd424ca58a9e713c386f9ed99d /gas/config | |
parent | 113202d6bca060bd1480c42eb373879309041094 (diff) | |
download | gdb-6344efa4f29dc63c108252eb91eb73e593792176.zip gdb-6344efa4f29dc63c108252eb91eb73e593792176.tar.gz gdb-6344efa4f29dc63c108252eb91eb73e593792176.tar.bz2 |
* config/tc-ia64.c (note_register_values): Warning fix.
* config/tc-mips.c (append_insn): Likewise.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-ia64.c | 2 | ||||
-rw-r--r-- | gas/config/tc-mips.c | 3 |
2 files changed, 3 insertions, 2 deletions
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; |