Skip to content

Commit

Permalink
Add .rv32 on rv32_zbs instructions
Browse files Browse the repository at this point in the history
to be consistent with slli, srli, and srai.

Signed-off-by: Hiroo HAYASHI <[email protected]>
  • Loading branch information
hirooih committed Jan 8, 2024
1 parent a014979 commit d653dc6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,4 +220,8 @@
'mop_rr_7',
'sspush_x1',
'sspush_x5',
'bclri.rv32',
'bexti.rv32',
'binvi.rv32',
'bseti.rv32',
]
8 changes: 4 additions & 4 deletions rv32_zbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$pseudo_op rv64_zbs::bclri bclri rd rs1 31..25=0x24 shamtw 14..12=1 6..2=0x04 1..0=3
$pseudo_op rv64_zbs::bexti bexti rd rs1 31..25=0x24 shamtw 14..12=5 6..2=0x04 1..0=3
$pseudo_op rv64_zbs::binvi binvi rd rs1 31..25=0x34 shamtw 14..12=1 6..2=0x04 1..0=3
$pseudo_op rv64_zbs::bseti bseti rd rs1 31..25=0x14 shamtw 14..12=1 6..2=0x04 1..0=3
$pseudo_op rv64_zbs::bclri bclri.rv32 rd rs1 31..25=0x24 shamtw 14..12=1 6..2=0x04 1..0=3
$pseudo_op rv64_zbs::bexti bexti.rv32 rd rs1 31..25=0x24 shamtw 14..12=5 6..2=0x04 1..0=3
$pseudo_op rv64_zbs::binvi binvi.rv32 rd rs1 31..25=0x34 shamtw 14..12=1 6..2=0x04 1..0=3
$pseudo_op rv64_zbs::bseti bseti.rv32 rd rs1 31..25=0x14 shamtw 14..12=1 6..2=0x04 1..0=3

0 comments on commit d653dc6

Please sign in to comment.