summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>1998-12-06 10:01:29 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>1998-12-06 10:01:29 +0000
commit96a725ca8602ff7deb80ddca193b99beb2c828d5 (patch)
treef09a998a8c27148152a683aa3658e4a865df93f9
parent0398487d04503891cb3a92e506efe5f552169ee3 (diff)
Fix a minor 64 bit constant synth. bug
-rw-r--r--gnu/usr.bin/binutils/gas/config/tc-mips.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gnu/usr.bin/binutils/gas/config/tc-mips.c b/gnu/usr.bin/binutils/gas/config/tc-mips.c
index 2c390080832..1465abe1803 100644
--- a/gnu/usr.bin/binutils/gas/config/tc-mips.c
+++ b/gnu/usr.bin/binutils/gas/config/tc-mips.c
@@ -2025,11 +2025,9 @@ load_register (counter, reg, ep, dbl)
if (ep->X_op != O_big)
{
hi32 = *ep;
- shift = 32;
- hi32.X_add_number >>= shift;
+ hi32.X_add_number = (valueT) hi32.X_add_number >> 16;
+ hi32.X_add_number = (valueT) hi32.X_add_number >> 16;
hi32.X_add_number &= 0xffffffff;
- if ((hi32.X_add_number & 0x80000000) != 0)
- hi32.X_add_number |= ~ (offsetT) 0xffffffff;
lo32 = *ep;
lo32.X_add_number &= 0xffffffff;
}