This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

d30v patch applied


I applied the following patch to gas:

2000-03-02  Michael Meissner  <meissner@redhat.com>

	* config/tc-d30v.c (check_range): Remove code that incorrectly
	sign extended values where bits < 32.

*** gas/config/tc-d30v.c.~1~	Thu Mar  2 13:39:52 2000
--- gas/config/tc-d30v.c	Thu Mar  2 13:44:18 2000
*************** check_range (num, bits, flags)
*** 247,256 ****
    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.... */
--- 247,252 ----

-- 
Michael Meissner, Cygnus Solutions, a Red Hat company.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work:	  meissner@redhat.com		phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org	fax:   +1 978-692-4482

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]