Skip to content

Commit

Permalink
Add missing -n0
Browse files Browse the repository at this point in the history
add `_n0' on `rd` for `c.li`, `c.mv`, `c.add`, and `c.lqsp`.

Signed-off-by: Hiroo HAYASHI <24754036+hirooih@users.noreply.github.com>
  • Loading branch information
hirooih committed Jan 7, 2024
1 parent a014979 commit 93d4458
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions rv_c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ c.sw rs1_p rs2_p c_uimm7lo c_uimm7hi 1..0=0 15..13=6
#quadrant 1
c.nop c_nzimm6hi c_nzimm6lo 1..0=1 15..13=0 11..7=0
c.addi rd_rs1_n0 c_nzimm6lo c_nzimm6hi 1..0=1 15..13=0
c.li rd c_imm6lo c_imm6hi 1..0=1 15..13=2
c.li rd_n0 c_imm6lo c_imm6hi 1..0=1 15..13=2
c.addi16sp c_nzimm10hi c_nzimm10lo 1..0=1 15..13=3 11..7=2
c.lui rd_n2 c_nzimm18hi c_nzimm18lo 1..0=1 15..13=3
c.andi rd_rs1_p c_imm6hi c_imm6lo 1..0=1 15..13=4 11..10=2
Expand All @@ -21,10 +21,10 @@ c.bnez rs1_p c_bimm9lo c_bimm9hi 1..0=1 15..13=7
#quadrant 2
c.lwsp rd_n0 c_uimm8sphi c_uimm8splo 1..0=2 15..13=2
c.jr rs1_n0 1..0=2 15..13=4 12=0 6..2=0
c.mv rd c_rs2_n0 1..0=2 15..13=4 12=0
c.mv rd_n0 c_rs2_n0 1..0=2 15..13=4 12=0
c.ebreak 1..0=2 15..13=4 12=1 11..2=0
c.jalr c_rs1_n0 1..0=2 15..13=4 12=1 6..2=0
c.add rd_rs1 c_rs2_n0 1..0=2 15..13=4 12=1
c.add rd_rs1_n0 c_rs2_n0 1..0=2 15..13=4 12=1
c.swsp c_rs2 c_uimm8sp_s 1..0=2 15..13=6


Expand Down
2 changes: 1 addition & 1 deletion unratified/rv128_c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $import rv64_c::c.sd
$import rv64_c::c.addiw

#quadrant 2
c.lqsp rd c_uimm10sphi c_uimm10splo 1..0=2 15..13=1
c.lqsp rd_n0 c_uimm10sphi c_uimm10splo 1..0=2 15..13=1
$import rv64_c::c.ldsp
c.sqsp c_rs2 c_uimm10sp_s 1..0=2 15..13=5
$import rv64_c::c.sdsp

0 comments on commit 93d4458

Please sign in to comment.