]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
m32r.opc (parse_slo16): Better version of previous patch.
authorNick Clifton <nickc@redhat.com>
Tue, 18 Oct 2005 07:53:17 +0000 (07:53 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 18 Oct 2005 07:53:17 +0000 (07:53 +0000)
cpu/ChangeLog
cpu/m32r.opc
opcodes/ChangeLog
opcodes/m32r-asm.c

index ecc06b4565cfc40508d4efc4d6c0043ef7c2f967..5478b4d375bc82bb3bf67ce255fd5de63f909f7c 100644 (file)
@@ -1,3 +1,7 @@
+2005-10-18  Andreas Schwab  <schwab@suse.de>
+
+       * m32r.opc (parse_slo16): Better version of previous patch.
+
 2005-10-14  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
 
        * cpu/m32r.opc (parse_slo16): Do not assume a 32-bit host word
index afe12eb7b6c7edb27e953eb29c486826f15ec3ca..2459fecbf50d9e0a6350cd2f2a266ce5add27257 100644 (file)
@@ -182,8 +182,8 @@ parse_slo16 (CGEN_CPU_DESC cd,
         {
          value &= 0xffff;
           if (value & 0x8000)
-           value |= ~0xffff;
-        }
+           value = ((value & 0xffff) ^ 0x8000) - 0x8000;
+       }
       *valuep = value;
       return errmsg;
     }
index 9bcce14c6ef7165cd96aad628bf1a62753b77f45..6bfdb7ceb75005c8ab51218ca96b2520541cd2ce 100644 (file)
@@ -1,3 +1,7 @@
+2005-10-18  Nick Clifton  <nickc@redhat.com>
+
+       * m32r-asm.c: Regenerate after updating m32r.opc.
+
 2005-10-14  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
 
        * m32r-asm.c: Regenerate after updating m32r.opc.
index b45f720ee4d04a557c6ddc79a01cf7949ab64104..39546082d414ee6eccd72599dfc6a77e80143d9b 100644 (file)
@@ -144,8 +144,8 @@ parse_slo16 (CGEN_CPU_DESC cd,
         {
          value &= 0xffff;
           if (value & 0x8000)
-           value |= ~0xffff;
-        }
+           value = ((value & 0xffff) ^ 0x8000) - 0x8000;
+       }
       *valuep = value;
       return errmsg;
     }