]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2000-09-08 Philip Blundell <philb@gnu.org>
authorPhil Blundell <philb@gnu.org>
Fri, 8 Sep 2000 21:02:54 +0000 (21:02 +0000)
committerPhil Blundell <philb@gnu.org>
Fri, 8 Sep 2000 21:02:54 +0000 (21:02 +0000)
* config/tc-arm.c (md_apply_fix3): Correct handling of ADRL when
offset is negative.

gas/ChangeLog
gas/config/tc-arm.c

index 9c9b1948f1dc3ad3bebe55dcf47a65b906f860ae..590abef5171a69dc776338f2ffff52d1ef03c45d 100644 (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-08-30  Matthew Jacob  <mjacob@feral.com>
 
        * config/tc-alpha.c (md_undefined_symbol): Properly understand that
index c6a197966932780f4ea11c70059e7a3402aabc39..51c0a7602b5a7eec2ac24671bde708be53ea1c9c 100644 (file)
@@ -5450,7 +5450,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