Skip to content

Commit

Permalink
Fixed typos in loadpair instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
ksco committed Aug 31, 2024
1 parent c79b6e5 commit 9edfb1b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion xtheadmempair/ldd.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ case the whole instruction will be re-executed.
Operation::
[source,sail]
--
if (rs1 != rd1 && rs != rd2 && rd1 != rd2) {
if (rs1 != rd1 && rs1 != rd2 && rd1 != rd2) {
addr := rs1 + (zero_extend(imm2) << 4)
tmp1 := mem[addr+7:addr]
tmp2 := mem[addr+15:addr+8]
Expand Down
2 changes: 1 addition & 1 deletion xtheadmempair/lwd.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ case the whole instruction will be re-executed.
Operation::
[source,sail]
--
if (rs1 != rd1 && rs != rd2 && rd1 != rd2) {
if (rs1 != rd1 && rs1 != rd2 && rd1 != rd2) {
addr := rs1 + (zero_extend(imm2) << 3)
tmp1 := sign_extend(mem[addr+3:addr])
tmp2 := sign_extend(mem[addr+7:addr+4])
Expand Down
2 changes: 1 addition & 1 deletion xtheadmempair/lwud.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ case the whole instruction will be re-executed.
Operation::
[source,sail]
--
if (rs1 != rd1 && rs != rd2 && rd1 != rd2) {
if (rs1 != rd1 && rs1 != rd2 && rd1 != rd2) {
addr := rs1 + (zero_extend(imm2) << 3)
tmp1 := zero_extend(mem[addr+3:addr])
tmp2 := zero_extend(mem[addr+7:addr+4])
Expand Down

0 comments on commit 9edfb1b

Please sign in to comment.