Skip to content

Commit 12d0eb0

Browse files
lenarycmuellner
authored andcommitted
[Zilsd] Clarify Symbol Pseudos for Zilsd
The existing documentation didn't mention that `ld` and `sd` symbol pseudos aren't available on RV32. This change clarifies that these are available, but denote pair load/stores using the Zilsd instructions.
1 parent 5d8baa7 commit 12d0eb0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/asm-manual.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,10 @@ as seen by `objdump`:
793793
1c: R_RISCV_PCREL_LO12_S .L0
794794
----
795795

796+
On RV32, `ld <rd>, <symbol>` and `sd <rd>, <symbol>, <rt>` can be used to
797+
generate a sequence including the `ld` and `sd` instructions in Zilsd -- in
798+
these cases, `<rd>` denotes the even GPR in an even-odd GPR pair.
799+
796800
== Constants
797801

798802
The following example shows loading a constant using the `%hi` and

0 commit comments

Comments
 (0)