aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorCooper Qu <cooper.qu@linux.alibaba.com>2020-10-19 15:45:36 +0800
committerLifang Xia <xlf194833_xia@alibaba-inc.com>2020-10-26 17:17:53 +0800
commit2e58f3923ef09f8a9f8b416d3226d800e143efbe (patch)
treecb854efa04a8fb34c5d44f45b2d2b2fef9d8c91f /gas/config
parent1b03c32c3bd08f180f22ee2f8a5dce7f42a74ebf (diff)
downloadbinutils-2e58f3923ef09f8a9f8b416d3226d800e143efbe.zip
binutils-2e58f3923ef09f8a9f8b416d3226d800e143efbe.tar.gz
binutils-2e58f3923ef09f8a9f8b416d3226d800e143efbe.tar.bz2
C-SKY: Fix the literal dump of big vector constant.
gas/ * config/tc-csky.c (dump_literals): Fix the literal dump of big vector constant.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-csky.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/tc-csky.c b/gas/config/tc-csky.c
index 10272fe..8b762c2 100644
--- a/gas/config/tc-csky.c
+++ b/gas/config/tc-csky.c
@@ -2022,7 +2022,8 @@ dump_literals (int isforce)
emit_expr (& p->e, 4);
if (p->e.X_op == O_big)
- i += ((p->e.X_add_number * CHARS_PER_LITTLENUM) >> 2);
+ i += (p->e.X_add_number & 1) +
+ ((p->e.X_add_number * CHARS_PER_LITTLENUM) >> 2);
else
i += (p->isdouble ? 2 : 1);
}