[PATCH] D156214: [LLVM][RISCV] Check more extension dependencies

Alex Bradbury via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 25 04:59:43 PDT 2023


asb added inline comments.


================
Comment at: llvm/lib/Support/RISCVISAInfo.cpp:948
-  // TODO: The 'q' extension requires rv64.
-  // TODO: It is illegal to specify 'e' extensions with 'f' and 'd'.
 
----------------
imkiva wrote:
> wangpc wrote:
> > I think the comment is outdated here. `E` can be combined with all other extensions according to spec:
> > > Unless otherwise stated, standard extensions compatible with RV32I and RV64I are also compatible with RV32E and RV64E, respectively.
> > And, please see also D70401 for more context.
> I downloaded the specification from [here](https://github.com/riscv/riscv-isa-manual/releases/download/Ratified-IMAFDQC/riscv-spec-20191213.pdf), and in page 34 the footnote says:
> 
> > RV32E can be combined with all current standard extensions. Defining the F, D, and Q extensions as having a 16-entry floating point register file when combined with RV32E was considered but **decided against**. To support systems with reduced floating-point register state, we intend to define a “Zfinx” extension...
> 
> It seems in the spec version 20191213, they rejected the combination of `E` with standard floating-point extensions, instead, a separate extension `Zfinx` is chosen for the original purpose.
> I am not sure if there's any newer specification that decides to allow this combination.
> 
> 
There's a link to the ratified version on https://wiki.riscv.org/display/HOME/Recently+Ratified+Extensions - see https://drive.google.com/file/d/1GjHmphVKvJlOBJydAt36g0Oc8yCOPtKw/view

As @wangpc says, the restriction was removed and so the comment is out of date.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D156214/new/

https://reviews.llvm.org/D156214



More information about the cfe-commits mailing list