projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bd05f2
)
oops - omitted from previous delta
author
Nick Clifton
<nickc@redhat.com>
Thu, 4 Apr 2013 07:24:08 +0000
(07:24 +0000)
committer
Nick Clifton
<nickc@redhat.com>
Thu, 4 Apr 2013 07:24:08 +0000
(07:24 +0000)
gas/config/tc-v850.c
patch
|
blob
|
history
diff --git
a/gas/config/tc-v850.c
b/gas/config/tc-v850.c
index 276756a800954e2fc26ec97e5e6f34a9fdd422a8..a23387c186d2de9c707c8386608e4c61619d2d16 100644
(file)
--- a/
gas/config/tc-v850.c
+++ b/
gas/config/tc-v850.c
@@
-3459,6
+3459,11
@@
md_apply_fix (fixS *fixP, valueT *valueP, segT seg ATTRIBUTE_UNUSED)
else
insn = bfd_getl16 ((unsigned char *) where);
+ /* When inserting loop offets a backwards displacement
+ is encoded as a positive value. */
+ if (operand->flags & V850_INVERSE_PCREL)
+ value = - value;
+
insn = v850_insert_operand (insn, operand, (offsetT) value,
&errmsg);
if (errmsg)