Skip to content

Commit

Permalink
Add c.sext.w and zext.w
Browse files Browse the repository at this point in the history
Signed-off-by: Afonso Oliveira <Afonso.Oliveira@synopsys.com>
  • Loading branch information
AFOliveira committed Oct 2, 2024
1 parent 85da0d6 commit 50a1135
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rv64_zba
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sh1add.uw rd rs1 rs2 31..25=16 14..12=2 6..2=0x0E 1..0=3
sh2add.uw rd rs1 rs2 31..25=16 14..12=4 6..2=0x0E 1..0=3
sh3add.uw rd rs1 rs2 31..25=16 14..12=6 6..2=0x0E 1..0=3
slli.uw rd rs1 31..26=2 shamtd 14..12=1 6..2=0x06 1..0=3

$pseudo_op rv64_zba::add.uw zext.w rd rs1 31..25=4 24..20=0 14..12=0 6..2=0x0E 1..0=3
4 changes: 4 additions & 0 deletions rv64_zcb
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
c.zext.w rd_rs1_p 1..0=1 15..13=4 12..10=7 6..5=3 4..2=4
c.addiw rd_rs1_n0 c_imm6lo c_imm6hi 1..0=1 15..13=1


$pseudo_op rv64_c::c.addiw c.sext.w rd_rs1_n0 15..13=1 12..11=0 6..2=0 1..0=1

0 comments on commit 50a1135

Please sign in to comment.