From 2e58f3923ef09f8a9f8b416d3226d800e143efbe Mon Sep 17 00:00:00 2001 From: Cooper Qu Date: Mon, 19 Oct 2020 15:45:36 +0800 Subject: [PATCH] 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. --- gas/config/tc-csky.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gas/config/tc-csky.c b/gas/config/tc-csky.c index 10272fede1c..8b762c21151 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); } -- 2.30.2