Skip to content

Commit

Permalink
Merge pull request #1821 from pfusik/c-st-strong-code-em
Browse files Browse the repository at this point in the history
Undo special formatting of compressed integer reg-reg expansions
  • Loading branch information
wmat authored Jan 23, 2025
2 parents 4f277ff + e982ffe commit d7ae73a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/c-st-ext.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -733,34 +733,34 @@ These instructions use the CA format.
`C.AND` computes the bitwise `AND` of the values in registers
_rd′_ and _rs2′_, then writes the result
to register _rd′_. `C.AND` expands into
*`_and rd′, rd′, rs2′_`*.
`and rd′, rd′, rs2′`.

`C.OR` computes the bitwise `OR` of the values in registers
_rd′_ and _rs2′_, then writes the result
to register _rd′_. `C.OR` expands into
*`_or rd′, rd′, rs2′_`*.
`or rd, rd, rs2′`.

`C.XOR` computes the bitwise `XOR` of the values in registers
_rd′_ and _rs2′_, then writes the result
to register _rd′_. `C.XOR` expands into
*`_xor rd′, rd′, rs2′_`*.
`xor rd′, rd′, rs2′`.

`C.SUB` subtracts the value in register _rs2′_ from the
value in register _rd′_, then writes the result to
register _rd′_. `C.SUB` expands into
*`_sub rd′, rd′, rs2′_`*.
`sub rd′, rd′, rs2′`.

`C.ADDW` is an RV64C/RV128C-only instruction that adds the values in
registers _rd′_ and _rs2′_, then
sign-extends the lower 32 bits of the sum before writing the result to
register _rd′_. `C.ADDW` expands into
*`_addw rd′, rd′, rs2′_`*.
`addw rd′, rd′, rs2′`.

`C.SUBW` is an RV64C/RV128C-only instruction that subtracts the value in
register _rs2′_ from the value in register
_rd′_, then sign-extends the lower 32 bits of the
difference before writing the result to register _rd′_.
`C.SUBW` expands into *`_subw rd′, rd′, rs2′_`*.
`C.SUBW` expands into `subw rd′, rd′, rs2′`.

[NOTE]
====
Expand Down

0 comments on commit d7ae73a

Please # to comment.