From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1386) id 193EC3857C4D; Fri, 14 Oct 2022 10:52:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 193EC3857C4D Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Jan Beulich To: bfd-cvs@sourceware.org Subject: [binutils-gdb] RISC-V: Zicbo{m, p, z} adjustments to riscv_multi_subset_supports_ext() X-Act-Checkin: binutils-gdb X-Git-Author: Jan Beulich X-Git-Refname: refs/heads/master X-Git-Oldrev: b16e13328b14e2668e2a4355d587368ed040b680 X-Git-Newrev: d2552ba3e08067a30a03e5770f6fd8bd33f6f798 Message-Id: <20221014105229.193EC3857C4D@sourceware.org> Date: Fri, 14 Oct 2022 10:52:29 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2022 10:52:29 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dd2552ba3e080= 67a30a03e5770f6fd8bd33f6f798 commit d2552ba3e08067a30a03e5770f6fd8bd33f6f798 Author: Jan Beulich Date: Fri Oct 14 12:52:16 2022 +0200 RISC-V: Zicbo{m,p,z} adjustments to riscv_multi_subset_supports_ext() =20 The lack thereof did caused gas to issue "internal: unreachable INSN_CLASS_*" errors when trying to assemble respective insns without the feature(s) enabled via e.g. ".option arch, ...". Of course a proper hint towards the missing extension then wasn't given either. Diff: --- bfd/elfxx-riscv.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c index f0c91cc97f7..c89b1e53e92 100644 --- a/bfd/elfxx-riscv.c +++ b/bfd/elfxx-riscv.c @@ -2445,6 +2445,12 @@ riscv_multi_subset_supports_ext (riscv_parse_subset_= t *rps, { case INSN_CLASS_I: return "i"; + case INSN_CLASS_ZICBOM: + return "zicbom"; + case INSN_CLASS_ZICBOP: + return "zicbop"; + case INSN_CLASS_ZICBOZ: + return "zicboz"; case INSN_CLASS_ZICSR: return "zicsr"; case INSN_CLASS_ZIFENCEI: