forked from riscv/riscv-opcodes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- the ordering in these files have changed to preserve the order in the latex- tables - also ecall and ebreak has been moved to rv_i instead of keeping them in 'systems' file.
- Loading branch information
Showing
3 changed files
with
26 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
$pseudo_op rv64_i::slli slli rd rs1 shamtw 31..25=0 14..12=1 6..2=0x04 1..0=3 | ||
$pseudo_op rv64_i::srli srli rd rs1 shamtw 31..25=0 14..12=5 6..2=0x04 1..0=3 | ||
$pseudo_op rv64_i::srai srai rd rs1 shamtw 31..25=32 14..12=5 6..2=0x04 1..0=3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,17 @@ | ||
# RV64I additions to RV32I | ||
|
||
lwu rd rs1 imm12 14..12=6 6..2=0x00 1..0=3 | ||
ld rd rs1 imm12 14..12=3 6..2=0x00 1..0=3 | ||
sd imm12hi rs1 rs2 imm12lo 14..12=3 6..2=0x08 1..0=3 | ||
slli rd rs1 31..26=0 shamt 14..12=1 6..2=0x04 1..0=3 | ||
srli rd rs1 31..26=0 shamt 14..12=5 6..2=0x04 1..0=3 | ||
srai rd rs1 31..26=16 shamt 14..12=5 6..2=0x04 1..0=3 | ||
addiw rd rs1 imm12 14..12=0 6..2=0x06 1..0=3 | ||
slliw rd rs1 31..25=0 shamtw 14..12=1 6..2=0x06 1..0=3 | ||
srliw rd rs1 31..25=0 shamtw 14..12=5 6..2=0x06 1..0=3 | ||
sraiw rd rs1 31..25=32 shamtw 14..12=5 6..2=0x06 1..0=3 | ||
|
||
addw rd rs1 rs2 31..25=0 14..12=0 6..2=0x0E 1..0=3 | ||
subw rd rs1 rs2 31..25=32 14..12=0 6..2=0x0E 1..0=3 | ||
sllw rd rs1 rs2 31..25=0 14..12=1 6..2=0x0E 1..0=3 | ||
srlw rd rs1 rs2 31..25=0 14..12=5 6..2=0x0E 1..0=3 | ||
sraw rd rs1 rs2 31..25=32 14..12=5 6..2=0x0E 1..0=3 | ||
|
||
ld rd rs1 imm12 14..12=3 6..2=0x00 1..0=3 | ||
lwu rd rs1 imm12 14..12=6 6..2=0x00 1..0=3 | ||
|
||
sd imm12hi rs1 rs2 imm12lo 14..12=3 6..2=0x08 1..0=3 | ||
|
||
# RV32 versions of these are in opcodes-pseudo | ||
slli rd rs1 31..26=0 shamt 14..12=1 6..2=0x04 1..0=3 | ||
srli rd rs1 31..26=0 shamt 14..12=5 6..2=0x04 1..0=3 | ||
srai rd rs1 31..26=16 shamt 14..12=5 6..2=0x04 1..0=3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters