[PATCH] C-SKY: Fix the literal dump of big vector constant.

Cooper Qu cooper.qu@linux.alibaba.com
Mon Oct 19 07:45:36 GMT 2020


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 569fe2b..716196b 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.7.4



More information about the Binutils mailing list