Skip to content

Commit 74b5231

Browse files
committed
Add note about the profiles specification in RISCVUsage.rst
1 parent 2976cde commit 74b5231

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

llvm/docs/RISCVUsage.rst

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ on support follow.
9797
``Svnapot`` Assembly Support
9898
``Svpbmt`` Supported
9999
``V`` Supported
100-
``Za128rs`` Supported
101-
``Za64rs`` Supported
100+
``Za128rs`` Supported (`See note <#riscv-profiles-extensions-note>`__)
101+
``Za64rs`` Supported (`See note <#riscv-profiles-extensions-note>`__)
102102
``Zawrs`` Assembly Support
103103
``Zba`` Supported
104104
``Zbb`` Supported
@@ -120,14 +120,14 @@ on support follow.
120120
``Zfinx`` Supported
121121
``Zhinx`` Supported
122122
``Zhinxmin`` Supported
123-
``Zic64b`` Supported
123+
``Zic64b`` Supported (`See note <#riscv-profiles-extensions-note>`__)
124124
``Zicbom`` Assembly Support
125125
``Zicbop`` Supported
126126
``Zicboz`` Assembly Support
127-
``Ziccamoa`` Supported
128-
``Ziccif`` Supported
129-
``Zicclsm`` Supported
130-
``Ziccrse`` Supported
127+
``Ziccamoa`` Supported (`See note <#riscv-profiles-extensions-note>`__)
128+
``Ziccif`` Supported (`See note <#riscv-profiles-extensions-note>`__)
129+
``Zicclsm`` Supported (`See note <#riscv-profiles-extensions-note>`__)
130+
``Ziccrse`` Supported (`See note <#riscv-profiles-extensions-note>`__)
131131
``Zicntr`` (`See Note <#riscv-i2p1-note>`__)
132132
``Zicsr`` (`See Note <#riscv-i2p1-note>`__)
133133
``Zifencei`` (`See Note <#riscv-i2p1-note>`__)
@@ -212,6 +212,11 @@ Supported
212212
``zicntr``, ``zicsr``, ``zifencei``, ``zihpm``
213213
Between versions 2.0 and 2.1 of the base I specification, a backwards incompatible change was made to remove selected instructions and CSRs from the base ISA. These instructions were grouped into a set of new extensions, but were no longer required by the base ISA. This change is partially described in "Preface to Document Version 20190608-Base-Ratified" from the specification document (the ``zicntr`` and ``zihpm`` bits are not mentioned). LLVM currently implements version 2.1 of the base specification. To maintain compatibility, instructions from these extensions are accepted without being in the ``-march`` string. LLVM also allows the explicit specification of the extensions in an ``-march`` string.
214214

215+
.. _riscv-profiles-extensions-note:
216+
217+
``Za128rs``, ``Za64rs``, ``Zic64b``, ``Ziccamoa``, ``Ziccif``, ``Zicclsm``, ``Ziccrse``
218+
These extensions are defined as part of the `RISC-V Profiles specification <https://github.com/riscv/riscv-profiles/releases/tag/v1.0>`_. They do not introduce any new features themselves, but instead describe existing hardware features.
219+
215220
Experimental Extensions
216221
=======================
217222

0 commit comments

Comments
 (0)