Skip to content

Commit 60f9743

Browse files
lenarycmuellner
authored andcommitted
Clarify that Symbol Pseudos accept Symbol Expressions
1 parent 12d0eb0 commit 60f9743

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/asm-manual.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -748,15 +748,15 @@ This generates the following instructions and relocations as seen by `objdump`
748748
The following pseudoinstructions are available to load from and store to
749749
global objects:
750750

751-
* `l{b|h|w|d} <rd>, <symbol>`: load byte, half word, word or double word from global{empty}
751+
* `l{b|h|w|d} <rd>, <symbol expression>`: load byte, half word, word or double word from global{empty}
752752
footnote:fn-1[the first operand is implicitly used as a scratch register.]
753-
* `l{bu|hu|wu} <rd>, <symbol>`: load unsigned byte, half word, or word from global{empty}
753+
* `l{bu|hu|wu} <rd>, <symbol expression>`: load unsigned byte, half word, or word from global{empty}
754754
footnote:fn-1[]
755-
* `s{b|h|w|d} <rd>, <symbol>, <rt>`: store byte, half word, word or double word to global{empty}
755+
* `s{b|h|w|d} <rd>, <symbol expression>, <rt>`: store byte, half word, word or double word to global{empty}
756756
footnote:fn-2[the last operand specifies the scratch register to be used.]
757-
* `fl{h|w|d|q} <rd>, <symbol>, <rt>`: load half, float, double or quad precision from global{empty}
757+
* `fl{h|w|d|q} <rd>, <symbol expression>, <rt>`: load half, float, double or quad precision from global{empty}
758758
footnote:fn-2[]
759-
* `fs{h|w|d|q} <rd>, <symbol>, <rt>`: store half, float, double or quad precision to global{empty}
759+
* `fs{h|w|d|q} <rd>, <symbol expression>, <rt>`: store half, float, double or quad precision to global{empty}
760760
footnote:fn-2[]
761761

762762
The following example shows how these pseudoinstructions are used:
@@ -793,7 +793,7 @@ 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
796+
On RV32, `ld <rd>, <symbol expression>` and `sd <rd>, <symbol expression>, <rt>` can be used to
797797
generate a sequence including the `ld` and `sd` instructions in Zilsd -- in
798798
these cases, `<rd>` denotes the even GPR in an even-odd GPR pair.
799799

0 commit comments

Comments
 (0)