From 239af8cbd15cd9ef11e333f9889834665066e4b3 Mon Sep 17 00:00:00 2001 From: Tsukasa OI Date: Sat, 12 Aug 2023 16:14:04 +0000 Subject: RISC-V: Make "fli.h" available to 'Zvfh' + 'Zfa' The documentation of the 'Zfa' extension states that "fli.h" is available "if the Zfh or Zvfh extension is implemented" (both the latest and the oldest editions are checked). This fact was not reflected in Binutils ('Zvfh' implies 'Zfhmin', not full 'Zfh' extension and "fli.h" required 'Zfh' and 'Zfa' extensions). This commit makes "fli.h" also available when both 'Zfa' and 'Zvfh' extensions are implemented. bfd/ChangeLog: * elfxx-riscv.c (riscv_multi_subset_supports): Add new instruction class handling. (riscv_multi_subset_supports_ext): Likewise. gas/ChangeLog: * testsuite/gas/riscv/zfa-zvfh.s: New test. * testsuite/gas/riscv/zfa-zvfh.d: Ditto. include/ChangeLog: * opcode/riscv.h (enum riscv_insn_class): Add new instruction class. opcodes/ChangeLog: * riscv-opc.c (riscv_opcodes): Change instruction class of "fli.h" from INSN_CLASS_ZFH_AND_ZFA to new INSN_CLASS_ZFH_OR_ZVFH_AND_ZFA. --- include/opcode/riscv.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/opcode/riscv.h b/include/opcode/riscv.h index 0b8fde9..38927bd 100644 --- a/include/opcode/riscv.h +++ b/include/opcode/riscv.h @@ -409,6 +409,7 @@ enum riscv_insn_class INSN_CLASS_D_AND_ZFA, INSN_CLASS_Q_AND_ZFA, INSN_CLASS_ZFH_AND_ZFA, + INSN_CLASS_ZFH_OR_ZVFH_AND_ZFA, INSN_CLASS_ZBA, INSN_CLASS_ZBB, INSN_CLASS_ZBC, -- cgit v1.1