Skip to content

Commit 6459e74

Browse files
committed
Add note about the profiles specification in RISCVUsage.rst
1 parent 6660da8 commit 6459e74

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
@@ -96,8 +96,8 @@ on support follow.
9696
``Svnapot`` Assembly Support
9797
``Svpbmt`` Supported
9898
``V`` Supported
99-
``Za128rs`` Supported
100-
``Za64rs`` Supported
99+
``Za128rs`` Supported (`See note <#riscv-profiles-extensions-note>`__)
100+
``Za64rs`` Supported (`See note <#riscv-profiles-extensions-note>`__)
101101
``Zawrs`` Assembly Support
102102
``Zba`` Supported
103103
``Zbb`` Supported
@@ -119,14 +119,14 @@ on support follow.
119119
``Zfinx`` Supported
120120
``Zhinx`` Supported
121121
``Zhinxmin`` Supported
122-
``Zic64b`` Supported
122+
``Zic64b`` Supported (`See note <#riscv-profiles-extensions-note>`__)
123123
``Zicbom`` Assembly Support
124124
``Zicbop`` Supported
125125
``Zicboz`` Assembly Support
126-
``Ziccamoa`` Supported
127-
``Ziccif`` Supported
128-
``Zicclsm`` Supported
129-
``Ziccrse`` Supported
126+
``Ziccamoa`` Supported (`See note <#riscv-profiles-extensions-note>`__)
127+
``Ziccif`` Supported (`See note <#riscv-profiles-extensions-note>`__)
128+
``Zicclsm`` Supported (`See note <#riscv-profiles-extensions-note>`__)
129+
``Ziccrse`` Supported (`See note <#riscv-profiles-extensions-note>`__)
130130
``Zicntr`` (`See Note <#riscv-i2p1-note>`__)
131131
``Zicsr`` (`See Note <#riscv-i2p1-note>`__)
132132
``Zifencei`` (`See Note <#riscv-i2p1-note>`__)
@@ -206,6 +206,11 @@ Supported
206206
``zicntr``, ``zicsr``, ``zifencei``, ``zihpm``
207207
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.
208208

209+
.. _riscv-profiles-extensions-note:
210+
211+
``Za128rs``, ``Za64rs``, ``Zic64b``, ``Ziccamoa``, ``Ziccif``, ``Zicclsm``, ``Ziccrse``
212+
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.
213+
209214
Experimental Extensions
210215
=======================
211216

0 commit comments

Comments
 (0)