Skip to content

Commit 486e1d9

Browse files
committed
[RISCV][docs] Release Notes
These cover recent additions and changes to assembly and inline assembly support.
1 parent de5e4eb commit 486e1d9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

llvm/docs/ReleaseNotes.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,20 @@ Changes to the RISC-V Backend
197197
* The `Sha` extension is now supported.
198198
* The RVA23U64, RVA23S64, RVB23U64, and RVB23S64 profiles are no longer marked
199199
as experimental.
200+
* `.insn <length>, <raw encoding>` can be used to assemble 48- and 64-bit
201+
instructions from raw integer values.
202+
* `.insn [<length>,] <raw encoding>` now accepts absolute expressions for both
203+
expressions, so that they can be computed from constants and absolute symbols.
204+
* The following new inline assembly constraints and modifiers are accepted:
205+
* `cr` constraint meaning an RVC-encoding compatible GPR (`x8`-`x15`)
206+
* `cf` constraint meaning an RVC-encoding compatible FPR (`f8`-`f15`)
207+
* `R` constraint meaning an even-odd GPR pair (prints as the even register,
208+
but both registers in the pair are considered live).
209+
* `N` modifer meaning print the register encoding (0-31) rather than the name.
210+
* `f` and `cf` inline assembly constraints, when using F-/D-/H-in-X extensions,
211+
will use the relevant GPR rather than FPR. This makes inline assembly portable
212+
between e.g. F and Zfinx code.
213+
200214

201215
Changes to the WebAssembly Backend
202216
----------------------------------

0 commit comments

Comments
 (0)