-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #278 from foss-for-synopsys-dwc-arc-processors/F/D…
…/CSR_Pseudoinstructions Added the rest of 1:1 PseudoInstructions
- Loading branch information
Showing
2 changed files
with
14 additions
and
1 deletion.
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
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,6 +1,15 @@ | ||
csrrw rd rs1 csr 14..12=1 6..2=0x1C 1..0=3 | ||
csrrw rd rs1 csr 14..12=1 6..2=0x1C 1..0=3 | ||
csrrs rd rs1 csr 14..12=2 6..2=0x1C 1..0=3 | ||
csrrc rd rs1 csr 14..12=3 6..2=0x1C 1..0=3 | ||
csrrwi rd csr zimm 14..12=5 6..2=0x1C 1..0=3 | ||
csrrsi rd csr zimm 14..12=6 6..2=0x1C 1..0=3 | ||
csrrci rd csr zimm 14..12=7 6..2=0x1C 1..0=3 | ||
|
||
#pseudoinstructions | ||
$pseudo_op rv_zicsr::csrrs csrr rd csr 19..15=0x0 14..12=2 6..2=0x1C 1..0=3 | ||
$pseudo_op rv_zicsr::csrrw csrw rs1 csr 14..12=1 11..7=0x0 6..2=0x1C 1..0=3 | ||
$pseudo_op rv_zicsr::csrrs csrs rs1 csr 14..12=2 11..7=0x0 6..2=0x1C 1..0=3 | ||
$pseudo_op rv_zicsr::csrrc csrc rs1 csr 14..12=3 11..7=0x0 6..2=0x1C 1..0=3 | ||
$pseudo_op rv_zicsr::csrrwi csrwi csr zimm 14..12=5 11..7=0x0 6..2=0x1C 1..0=3 | ||
$pseudo_op rv_zicsr::csrrsi csrsi csr zimm 14..12=6 11..7=0x0 6..2=0x1C 1..0=3 | ||
$pseudo_op rv_zicsr::csrrci csrci csr zimm 14..12=7 11..7=0x0 6..2=0x1C 1..0=3 |