This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
d30v patch applied
- To: binutils at sourceware dot cygnus dot com
- Subject: d30v patch applied
- From: Michael Meissner <meissner at redhat dot com>
- Date: Thu, 2 Mar 2000 17:18:58 -0500
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