Skip to content

Commit 72c5dfd

Browse files
authored
vmadc/vmsbc instruction clarification (riscv#1834)
Appears to be a typo that suggest the instruction writes back the result of the operation rather than the carry/borrow out Signed-off-by: jacassidy <[email protected]>
1 parent 13b89fc commit 72c5dfd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/v-st-ext.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2482,9 +2482,9 @@ Encodings corresponding to the unmasked versions (`vm=1`) are reserved.
24822482

24832483
`vmadc` and `vmsbc` add or subtract the source operands, optionally
24842484
add the carry-in or subtract the borrow-in if masked (`vm=0`), and
2485-
write the result back to mask register `vd`. If unmasked (`vm=1`),
2486-
there is no carry-in or borrow-in. These instructions operate on and
2487-
write back all body elements, even if masked. Because these
2485+
write the resulting carry-out or borrow-out back to mask register `vd`.
2486+
If unmasked (`vm=1`), there is no carry-in or borrow-in. These instructions
2487+
operate on and write back all body elements, even if masked. Because these
24882488
instructions produce a mask value, they always operate with a
24892489
tail-agnostic policy.
24902490

0 commit comments

Comments
 (0)