* config/tc-ia64.c (note_register_values): Warning fix.
authorAlan Modra <amodra@gmail.com>
Mon, 30 Jun 2003 04:10:48 +0000 (04:10 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 30 Jun 2003 04:10:48 +0000 (04:10 +0000)
* config/tc-mips.c (append_insn): Likewise.

gas/ChangeLog
gas/config/tc-ia64.c
gas/config/tc-mips.c

index 6cfe9b3d2f3d6ad1b4f4aacc7d98739e6eb69a9e..9fcba3d2ab64888568924814ad40fb6694a72446 100644 (file)
@@ -1,3 +1,8 @@
+2003-06-30  Alan Modra  <amodra@bigpond.net.au>
+
+       * config/tc-ia64.c (note_register_values): Warning fix.
+       * config/tc-mips.c (append_insn): Likewise.
+
 2003-06-29  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
 
        * config/tc-mips.c (mips_set_options,mips_opts): Support for
index 077e6470d4f8cec8ede66576321fec7784bc1071..24e33c0662648347dae5c46e5274cfb78ee2a4c9 100644 (file)
@@ -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;
index 6bba581c34aeb92125cbb7e97cad938266d72b49..28a5f12dd36bbf466e8ac1f80c6cd129e71bdc2c 100644 (file)
@@ -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;