Skip to content

Commit

Permalink
migrate Zbs-Extension opcodes
Browse files Browse the repository at this point in the history
- split instructions as per new file naming policy
- here the 32-bit ops are considered pseudo_ops of the 64-bit equivalents as they only differ in one-bit.
  • Loading branch information
neelgala committed Apr 8, 2022
1 parent 7cc95c1 commit 5e7610c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
9 changes: 0 additions & 9 deletions opcodes-rv32zbs

This file was deleted.

5 changes: 5 additions & 0 deletions rv32_zbs
Original file line number Diff line number Diff line change
@@ -0,0 +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

5 changes: 5 additions & 0 deletions rv64_zbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
bclri rd rs1 31..26=0x12 shamt 14..12=1 6..2=0x04 1..0=3
bexti rd rs1 31..26=0x12 shamt 14..12=5 6..2=0x04 1..0=3
binvi rd rs1 31..26=0x1a shamt 14..12=1 6..2=0x04 1..0=3
bseti rd rs1 31..26=0x0a shamt 14..12=1 6..2=0x04 1..0=3

5 changes: 5 additions & 0 deletions rv_zbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
bclr rd rs1 rs2 31..25=0x24 14..12=1 6..2=0x0C 1..0=3
bext rd rs1 rs2 31..25=36 14..12=5 6..2=0x0C 1..0=3
binv rd rs1 rs2 31..25=52 14..12=1 6..2=0x0C 1..0=3
bset rd rs1 rs2 31..25=20 14..12=1 6..2=0x0C 1..0=3

0 comments on commit 5e7610c

Please sign in to comment.