aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-08-17 18:26:49 +0000
committerIan Lance Taylor <ian@airs.com>1999-08-17 18:26:49 +0000
commitf589a541dc723a8cf7104bdce5ac8413e594f8fe (patch)
tree77032577cf83eb3d3bc389dc43642e24c07fe0d9 /gas
parent2190b5a5a8d3cd4afd0fb6e5f0785197d53e165e (diff)
downloadfsf-binutils-gdb-f589a541dc723a8cf7104bdce5ac8413e594f8fe.zip
fsf-binutils-gdb-f589a541dc723a8cf7104bdce5ac8413e594f8fe.tar.gz
fsf-binutils-gdb-f589a541dc723a8cf7104bdce5ac8413e594f8fe.tar.bz2
* config/tc-ppc.c (md_assemble): Trim @ha constant to 16 bits, to
handle 0xffffNNNN constants correctly.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-ppc.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index c47013a..1f6b8ff 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+1999-08-17 Ian Lance Taylor <ian@zembu.com>
+
+ * config/tc-ppc.c (md_assemble): Trim @ha constant to 16 bits, to
+ handle 0xffffNNNN constants correctly.
+
1999-08-16 Nick Clifton <nickc@cygnus.com>
* config/tc-arm.c (do_ldst): Look for register conflicts on stores
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index 56c2a48..c18a274 100644
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -1885,8 +1885,9 @@ md_assemble (str)
break;
case BFD_RELOC_HI16_S:
- ex.X_add_number = (((ex.X_add_number >> 16) & 0xffff)
- + ((ex.X_add_number >> 15) & 1));
+ ex.X_add_number = ((((ex.X_add_number >> 16) & 0xffff)
+ + ((ex.X_add_number >> 15) & 1))
+ & 0xffff);
break;
}
#endif