Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fa302d1

Browse files
committedJun 13, 2025
Remove pseudo_op to rv64_i for slli,srli,srai
Instructions slli,srli,srai have different bit pattern in rv32_i versus rv64_i. It is better to re-define them, and alias those `_rv32` suffix instruction to rv32_i self specification.
1 parent 9a09c48 commit fa302d1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎extensions/rv32_i

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
$pseudo_op rv64_i::slli slli rd rs1 shamtw 31..25=0 14..12=1 6..2=0x04 1..0=3
2-
$pseudo_op rv64_i::srli srli rd rs1 shamtw 31..25=0 14..12=5 6..2=0x04 1..0=3
3-
$pseudo_op rv64_i::srai srai rd rs1 shamtw 31..25=32 14..12=5 6..2=0x04 1..0=3
4-
$pseudo_op rv64_i::slli slli_rv32 rd rs1 shamtw 31..25=0 14..12=1 6..2=0x04 1..0=3
5-
$pseudo_op rv64_i::srli srli_rv32 rd rs1 shamtw 31..25=0 14..12=5 6..2=0x04 1..0=3
6-
$pseudo_op rv64_i::srai srai_rv32 rd rs1 shamtw 31..25=32 14..12=5 6..2=0x04 1..0=3
1+
slli rd rs1 shamtw 31..25=0 14..12=1 6..2=0x04 1..0=3
2+
srli rd rs1 shamtw 31..25=0 14..12=5 6..2=0x04 1..0=3
3+
srai rd rs1 shamtw 31..25=32 14..12=5 6..2=0x04 1..0=3
4+
$pseudo_op rv32_i::slli slli_rv32 rd rs1 shamtw 31..25=0 14..12=1 6..2=0x04 1..0=3
5+
$pseudo_op rv32_i::srli srli_rv32 rd rs1 shamtw 31..25=0 14..12=5 6..2=0x04 1..0=3
6+
$pseudo_op rv32_i::srai srai_rv32 rd rs1 shamtw 31..25=32 14..12=5 6..2=0x04 1..0=3

0 commit comments

Comments
 (0)
Please sign in to comment.