RISC-V: Zicbo{m,p,z} adjustments to riscv_multi_subset_supports_ext()
authorJan Beulich <jbeulich@suse.com>
Fri, 14 Oct 2022 10:52:16 +0000 (12:52 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 14 Oct 2022 10:52:16 +0000 (12:52 +0200)
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.

bfd/elfxx-riscv.c

index f0c91cc97f7f98a1b01b807a7b9ae72eb1b88173..c89b1e53e922bedfdf2e8949c70f4cbe1fe64efd 100644 (file)
@@ -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: