Skip to content

Commit a2dd99d

Browse files
Clarified that x0 handling does not apply to c.ld and c.sd
1 parent 80bc7a3 commit a2dd99d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/zilsd.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,12 @@ Zclsd adds the following RV32-only instructions:
9898

9999
=== Use of x0 as operand
100100

101-
LD and C.LD instructions with destination `x0` are processed as any other load, but the result is discarded entirely and x1 is not written.
101+
LD instructions with destination `x0` are processed as any other load, but the result is discarded entirely and x1 is not written.
102102
For C.LDSP, usage of `x0` as the destination is reserved.
103103

104-
When using `x0` as `src` of SD, C.SD or C.SDSP, the entire 64-bit operand is zero — i.e., register `x1` is not accessed.
104+
If using `x0` as `src` of SD or C.SDSP, the entire 64-bit operand is zero — i.e., register `x1` is not accessed.
105+
106+
C.LD and C.SD instructions can only use `x8-15`.
105107

106108
=== Exception Handling
107109

0 commit comments

Comments
 (0)