2000-09-08 Philip Blundell <philb@gnu.org>

* config/tc-arm.c (md_apply_fix3): Correct handling of ADRL when
	offset is negative.
This commit is contained in:
Phil Blundell 2000-09-08 21:05:33 +00:00
parent d14442f4a6
commit e0e3ecca5c
2 changed files with 6 additions and 1 deletions

View file

@ -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.

View file

@ -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