[RISCV][MC] Add support for experimental Zfbfmin extension
authorAlex Bradbury <asb@igalia.com>
Fri, 19 May 2023 14:16:38 +0000 (15:16 +0100)
committerAlex Bradbury <asb@igalia.com>
Fri, 19 May 2023 14:17:56 +0000 (15:17 +0100)
commit35ff5eba16465bd4116db266c01cbabebd500484
treecfa0ed83de2074389cffee25f36deb0210b56d25
parentb6bf28fae34442b21281286a5feda479ce47bce4
[RISCV][MC] Add support for experimental Zfbfmin extension

Provides MC layer support for Zfbfmin: scalar BF16 conversions.

As documented, this extension includes FLH, FSH, FMV.H.X, and FMH.X.H as
defined in Zfh/Zfhmin, but doesn't require either extension.

No Zfbfinxmin has been defined (though you would expect one in the
future, for symmetry with Zfhinxmin). See issue
https://github.com/riscv/riscv-bfloat16/issues/27.

Differential Revision: https://reviews.llvm.org/D147610
15 files changed:
clang/test/Preprocessor/riscv-target-features.c
llvm/docs/RISCVUsage.rst
llvm/docs/ReleaseNotes.rst
llvm/lib/Support/RISCVISAInfo.cpp
llvm/lib/Target/RISCV/RISCVFeatures.td
llvm/lib/Target/RISCV/RISCVInstrInfo.td
llvm/lib/Target/RISCV/RISCVInstrInfoZfbfmin.td [new file with mode: 0644]
llvm/lib/Target/RISCV/RISCVInstrInfoZfh.td
llvm/lib/Target/RISCV/RISCVSubtarget.h
llvm/test/CodeGen/RISCV/attributes.ll
llvm/test/MC/RISCV/attribute-arch.s
llvm/test/MC/RISCV/rv32zfbfmin-invalid.s [new file with mode: 0644]
llvm/test/MC/RISCV/rv32zfbfmin-valid.s [new file with mode: 0644]
llvm/test/MC/RISCV/rv64zhinx-invalid.s
llvm/test/MC/RISCV/rv64zhinxmin-invalid.s