aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>2000-03-02 22:18:12 +0000
committerMichael Meissner <gnu@the-meissners.org>2000-03-02 22:18:12 +0000
commitb7b8f32709d3b96122e0732c07560ae57d0aa06d (patch)
treec1f6605a43377387be2005f0314def2b924c1c0c
parentd018757450c899d3fbb320a438b5524a4562536d (diff)
downloadgdb-b7b8f32709d3b96122e0732c07560ae57d0aa06d.zip
gdb-b7b8f32709d3b96122e0732c07560ae57d0aa06d.tar.gz
gdb-b7b8f32709d3b96122e0732c07560ae57d0aa06d.tar.bz2
fix sign extension problem with d30v
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-d30v.c4
2 files changed, 5 insertions, 4 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 2eca96e..ee7089f 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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.
diff --git a/gas/config/tc-d30v.c b/gas/config/tc-d30v.c
index c894e2b..c95a8d2 100644
--- a/gas/config/tc-d30v.c
+++ b/gas/config/tc-d30v.c
@@ -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.... */