You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[DO NOT MERGE]
Until RISC-V BF16 extensions are frozen/ratified and the final version
number is determined, this patch should not be merged upstream. This
commit uses unratified version 0.8 as in the latest PDF documentation
(instead of possible 1.0 after ratification).
This commit adds support for the 'Zfbfmin' extension, the scalar BF16
conversion extension. It consists of two new instructions and four
previously 'Zfhmin'-only instructions.
This commit is based on the following specification:
<riscv/riscv-bfloat16@5578e34>
bfd/ChangeLog:
* elfxx-riscv.c (riscv_implicit_subsets) Add 'Zfbfmin' -> 'F'.
(riscv_supported_std_z_ext): Add 'Zfbfmin'.
(riscv_multi_subset_supports): Recategory INSN_CLASS_ZFHMIN to mean
'Zfhmin' or 'Zfbfmin'. Add support to INSN_CLASS_ZFBFMIN.
(riscv_multi_subset_supports_ext): Likewise.
gas/ChangeLog:
* testsuite/gas/riscv/zfbfmin.s: New test.
* testsuite/gas/riscv/zfbfmin.d: Likewise.
include/ChangeLog:
* opcode/riscv-opc.h (MATCH_FCVT_BF16_S, MASK_FCVT_BF16_S,
MATCH_FCVT_S_BF16, MASK_FCVT_S_BF16) New.
* opcode/riscv.h (enum riscv_insn_class): Add new instruction class
INSN_CLASS_ZFBFMIN.
opcodes/ChangeLog:
* riscv-opc.c (riscv_opcodes): Add 'Zfbfmin'-only instructions.
0 commit comments