public inbox for binutils-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] RISC-V: Fix inconsistent error message (range)
@ 2022-06-22 10:28 Nelson Chu
  0 siblings, 0 replies; only message in thread
From: Nelson Chu @ 2022-06-22 10:28 UTC (permalink / raw)
  To: bfd-cvs

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

commit b215cdf529832d486de5f69e666494ff4e604674
Author: Tsukasa OI <research_trasio@irq.a4lg.com>
Date:   Fri Jun 10 19:00:19 2022 +0900

    RISC-V: Fix inconsistent error message (range)
    
    This commit fixes inconsistent error message format involving compressed
    funct<n> fields.  In specific, funct6 had an error message with range
    0..2^<n> ("0..64") unlike other funct<n> fields with 0..2^<n>-1
    (e.g. funct4 with "0..15").
    
    gas/ChangeLog:
    
            * config/tc-riscv.c (riscv_ip): Fix inconsistent error message.

Diff:
---
 gas/config/tc-riscv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c
index 1b730b4be36..a10ae8e237b 100644
--- a/gas/config/tc-riscv.c
+++ b/gas/config/tc-riscv.c
@@ -2582,7 +2582,7 @@ riscv_ip (char *str, struct riscv_cl_insn *ip, expressionS *imm_expr,
 			    || imm_expr->X_add_number >= 64)
 			  {
 			    as_bad (_("bad value for compressed funct6 "
-				      "field, value must be 0...64"));
+				      "field, value must be 0...63"));
 			    break;
 			  }
 			INSERT_OPERAND (CFUNCT6, *ip, imm_expr->X_add_number);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-22 10:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-22 10:28 [binutils-gdb] RISC-V: Fix inconsistent error message (range) Nelson Chu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).