Skip to content

Commit

Permalink
retain the original shift instructions as pseudo-ops as well
Browse files Browse the repository at this point in the history
This is how its done in rv32_i as well.
  • Loading branch information
neelgala committed Sep 20, 2023
1 parent e7f35d2 commit 1fed748
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rv32_c
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# quadrant 1
c.jal c_imm12 1..0=1 15..13=1
$pseudo_op rv64_c::c.srli c.srli rd_rs1_p c_nzuimm5 1..0=1 15..13=4 12..10=0
$pseudo_op rv64_c::c.srai c.srai rd_rs1_p c_nzuimm5 1..0=1 15..13=4 12..10=1
$pseudo_op rv64_c::c.slli c.slli rd_rs1_n0 c_nzuimm6lo 1..0=2 15..12=0
$pseudo_op rv64_c::c.srli c.srli_rv32 rd_rs1_p c_nzuimm5 1..0=1 15..13=4 12..10=0
$pseudo_op rv64_c::c.srai c.srai_rv32 rd_rs1_p c_nzuimm5 1..0=1 15..13=4 12..10=1
$pseudo_op rv64_c::c.slli c.slli_rv32 rd_rs1_n0 c_nzuimm6lo 1..0=2 15..12=0

0 comments on commit 1fed748

Please sign in to comment.