diff options
author | Tsukasa OI <research_trasio@irq.a4lg.com> | 2022-06-10 19:00:19 +0900 |
---|---|---|
committer | Nelson Chu <nelson.chu@sifive.com> | 2022-06-22 18:13:16 +0800 |
commit | b215cdf529832d486de5f69e666494ff4e604674 (patch) | |
tree | bff724a6d50d55de43555ea1b3278aed64d1b76e /gas | |
parent | 4491a7c1aa356887a783c451a5e6cc708112b483 (diff) | |
download | fsf-binutils-gdb-b215cdf529832d486de5f69e666494ff4e604674.zip fsf-binutils-gdb-b215cdf529832d486de5f69e666494ff4e604674.tar.gz fsf-binutils-gdb-b215cdf529832d486de5f69e666494ff4e604674.tar.bz2 |
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.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/config/tc-riscv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c index 1b730b4..a10ae8e 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); |