diff options
author | Phil Blundell <philb@gnu.org> | 2000-09-08 21:05:33 +0000 |
---|---|---|
committer | Phil Blundell <philb@gnu.org> | 2000-09-08 21:05:33 +0000 |
commit | e0e3ecca5c85732382b3d47efc14bfb26ca31bb2 (patch) | |
tree | 597831f631d75ce9e26fe5176cd5178186a0687b /gas | |
parent | d14442f4a6291106bb9fd26d3d4d490e6e01cc6e (diff) | |
download | gdb-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')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-arm.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index f906e7d..ca278e6 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2000-09-08 Philip Blundell <philb@gnu.org> + + * config/tc-arm.c (md_apply_fix3): Correct handling of ADRL when + offset is negative. + 2000-09-07 H.J. Lu <hjl@gnu.org> * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM. 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 |