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

LifangXia lifangxia@sourceware.org
Mon Oct 26 10:01:30 GMT 2020


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2e58f3923ef09f8a9f8b416d3226d800e143efbe

commit 2e58f3923ef09f8a9f8b416d3226d800e143efbe
Author: Cooper Qu <cooper.qu@linux.alibaba.com>
Date:   Mon Oct 19 15:45:36 2020 +0800

    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.

Diff:
---
 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);
     }


More information about the Binutils-cvs mailing list