aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-arm.c
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2000-09-08 21:05:33 +0000
committerPhil Blundell <philb@gnu.org>2000-09-08 21:05:33 +0000
commite0e3ecca5c85732382b3d47efc14bfb26ca31bb2 (patch)
tree597831f631d75ce9e26fe5176cd5178186a0687b /gas/config/tc-arm.c
parentd14442f4a6291106bb9fd26d3d4d490e6e01cc6e (diff)
downloadgdb-e0e3ecca5c85732382b3d47efc14bfb26ca31bb2.zip
gdb-e0e3ecca5c85732382b3d47efc14bfb26ca31bb2.tar.gz
gdb-e0e3ecca5c85732382b3d47efc14bfb26ca31bb2.tar.bz2
2000-09-08 Philip Blundell <philb@gnu.org>
* config/tc-arm.c (md_apply_fix3): Correct handling of ADRL when offset is negative.
Diffstat (limited to 'gas/config/tc-arm.c')
-rw-r--r--gas/config/tc-arm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index faded96..0cc8cab 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -5676,7 +5676,7 @@ md_apply_fix3 (fixP, val, seg)
if (newimm != (unsigned int) FAIL)
newinsn = temp;
/* Still No ? Try using a negated value. */
- else if (validate_immediate_twopart (- value, & highpart) != (unsigned int) FAIL)
+ else if ((newimm = validate_immediate_twopart (- value, & highpart)) != (unsigned int) FAIL)
temp = newinsn = (temp & OPCODE_MASK) | OPCODE_SUB << DATA_OP_SHIFT;
/* Otherwise - give up. */
else