Skip to content

Commit

Permalink
Fix range representation for C.ADDI16SP immediate (#1634)
Browse files Browse the repository at this point in the history
It's an inclusive range, and it should have a space after the comma.
  • Loading branch information
aswaterman committed Sep 6, 2024
1 parent af96175 commit 39e1fcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/c-st-ext.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ C.ADDI16SP (add immediate to stack pointer)
shares the opcode with C.LUI, but has a destination field of
`x2`. C.ADDI16SP adds the non-zero sign-extended 6-bit immediate to the
value in the stack pointer (`sp=x2`), where the immediate is scaled to
represent multiples of 16 in the range (-512,496). C.ADDI16SP is used to
represent multiples of 16 in the range [-512, 496]. C.ADDI16SP is used to
adjust the stack pointer in procedure prologues and epilogues. It
expands into `addi x2, x2, nzimm[9:4]`. C.ADDI16SP is only valid when
_nzimm_≠0; the code point with _nzimm_=0 is reserved.
Expand Down

0 comments on commit 39e1fcc

Please sign in to comment.