[PATCH] D147610: [RISCV][MC] Add support for experimental Zfbfmin extension
Alex Bradbury via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 5 05:57:52 PDT 2023
asb created this revision.
asb added reviewers: reames, craig.topper.
Herald added subscribers: jobnoorman, luke, wingo, pmatos, VincentWu, vkmr, frasercrmck, jdoerfert, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, arichardson.
Herald added a project: All.
asb requested review of this revision.
Herald added subscribers: cfe-commits, pcwang-thead, eopXD, MaskRay.
Herald added projects: clang, LLVM.
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.
This patch is not ready for merging because the fcvt.bf16.s encoding collides with fround.h from zfa. See issue https://github.com/riscv/riscv-bfloat16/issues/33. Applying this patch causes tests failures due to this. Posting in order to allow early review, though I intended to wait for the encoding clash to be resolved before pushing to get this committed.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D147610
Files:
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
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
llvm/test/MC/RISCV/rv32zfbfmin-valid.s
llvm/test/MC/RISCV/rv64zhinx-invalid.s
llvm/test/MC/RISCV/rv64zhinxmin-invalid.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147610.511074.patch
Type: text/x-patch
Size: 17346 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230405/9877bd0f/attachment-0001.bin>
More information about the cfe-commits
mailing list