OSDN Git Service

fix sign extension problem with d30v
authormeissner <meissner>
Thu, 2 Mar 2000 22:18:12 +0000 (22:18 +0000)
committermeissner <meissner>
Thu, 2 Mar 2000 22:18:12 +0000 (22:18 +0000)
gas/ChangeLog
gas/config/tc-d30v.c

index 2eca96e..ee7089f 100644 (file)
@@ -1,3 +1,8 @@
+2000-03-02  Michael Meissner  <meissner@redhat.com>
+
+       * config/tc-d30v.c (check_range): Remove code that incorrectly
+       sign extended values where bits < 32.
+
 2000-03-02  H.J. Lu  (hjl@gnu.org)
 
        * configure.in: Support --enable-targets=all on ia32.
index c894e2b..c95a8d2 100644 (file)
@@ -247,10 +247,6 @@ check_range (num, bits, flags)
   if (bits == 32 && sizeof(unsigned long) * CHAR_BIT == 32)
     return 0;
 
-  /* Sign extend signed values to unsigned long */
-  if ((flags & OPERAND_SIGNED) && (num & ((unsigned long)1 << (bits - 1))))
-    num |= ((long)-1 << (bits - 1));
-
   if (flags & OPERAND_SHIFT)
     {
       /* We know that all shifts are right by three bits.... */