Skip to content

Commit 508f5eb

Browse files
correct the operand ordering according to #28
1 parent 86d2123 commit 508f5eb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Diff for: src/insns/sh123add_32bit.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,16 @@ Encoding::
4343
{ bits: 5, name: 'rd' },
4444
{ bits: 3, name: 0x2, attr: ['SH1ADD=010', 'CSH1ADD=010', 'SH2ADD=100', 'CSH2ADD=100', 'SH3ADD=110', 'CSH3ADD=110'] },
4545
{ bits: 5, name: 'rs1' },
46-
{ bits: 5, name: 'rs2' },
46+
{ bits: 5, name: 'cs2/rs2' },
4747
{ bits: 7, name: 0x10, attr: ['SH[1|2|3]ADD', 'CSH[1|2|3]ADD'] },
4848
]}
4949
....
5050

5151
Capability Mode Description::
52-
Increment the address field of `cs1` by `rs2` shifted left by _n_ bit positions. Clear the tag if the resulting capability is unrepresentable or `cs1` is sealed.
52+
Increment the address field of `cs2` by `rs1` shifted left by _n_ bit positions. Clear the tag if the resulting capability is unrepresentable or `cs2` is sealed.
5353

5454
Legacy Mode Description::
55-
Increment the address field of `rs1` by `rs2` shifted left by _n_ bit positions.
55+
Increment the address field of `rs2` by `rs1` shifted left by _n_ bit positions.
5656

5757
Prerequisites CSH[1|2|3]ADD::
5858
{cheri_base_ext_name}, Zba

Diff for: src/insns/sh123adduw_32bit.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,16 @@ Encoding::
4343
{ bits: 5, name: 'rd' },
4444
{ bits: 3, name: 0x2, attr: ['rv64: SH1ADD.UW=010', 'rv64: CSH1ADD.UW=010', 'rv64: SH2ADD.UW=100', 'rv64: CSH2ADD.UW=100', 'rv64: SH3ADD.UW=110', 'rv64: CSH3ADD.UW=110'] },
4545
{ bits: 5, name: 'rs1' },
46-
{ bits: 5, name: 'rs2' },
46+
{ bits: 5, name: 'cs2/rs2' },
4747
{ bits: 7, name: 0x10, attr: ['rv64: SH[1|2|3]ADD.UW', 'rv64: CSH[1|2|3]ADD.UW'] },
4848
]}
4949
....
5050

5151
Capability Mode Description::
52-
Increment the address field of `cs1` by the unsigned word in `rs2` shifted left by _n_ bit positions. Clear the tag if the resulting capability is unrepresentable or `cs1` is sealed.
52+
Increment the address field of `cs2` by the unsigned word in `rs1` shifted left by _n_ bit positions. Clear the tag if the resulting capability is unrepresentable or `cs1` is sealed.
5353

5454
Legacy Mode Description::
55-
Increment the address field of `rs1` by the unsigned word in `rs2` shifted left by _n_ bit positions.
55+
Increment the address field of `rs2` by the unsigned word in `rs1` shifted left by _n_ bit positions.
5656

5757
Prerequisites CSH[1|2|3]ADD.UW::
5858
{cheri_base_ext_name}, Zba

0 commit comments

Comments
 (0)