RFC: add testcase for new p extension - #648
Merged
Merged
Conversation
- Add rv64up/ and rv32up/ directories for P-extension tests - Add Makefrag files for both directories - Update main Makefile to include P-extension tests - Add padd_b test as initial test case - Use -march=rv64gp and -march=rv32gp for compilation Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
chihminchao
force-pushed
the
rvp
branch
2 times, most recently
from
May 21, 2026 15:31
ba5c992 to
4b323c2
Compare
Contributor
Author
|
Update: 2026/05/21
To do
|
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
…slx, srx Added tests: - rv32up/rev.S: RV32 bit reverse (grevi shamt=31) - rv64up/rev.S: RV64 bit reverse (grevi shamt=63) - rv64up/rev16.S: RV64 16-bit group swap (grevi shamt=48) - rv64up/mvm.S: RV64 move if mask - rv64up/mvmn.S: RV64 move if not mask - rv64up/merge.S: RV64 bitwise merge - rv64up/slx.S: RV64 funnel shift left - rv64up/srx.S: RV64 funnel shift right Updated Makefrags to include new tests. All tests verified passing with spike-cosim. Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
The complete set of instructions added for RV32 are: PSSHL.HS SSHL PSSHL.DHS PSSHL.DWS PSSHLR.HS SSHLR PSSHLR.DHS PSSHLR.DWS And for RV64: PSSHL.HS PSSHL.WS SHL PNCLIPP.B PNCLIPP.H PNCLIPP.W PSSHLR.HS PSSHLR.WS SHLR PNCLIPUP.B PNCLIPUP.H PNCLIPUP.W reference: https://www.jhauser.us/RISCV/ext-P/RVP-instrEncodings-020.pdf https://www.jhauser.us/RISCV/ext-P/RVP-baseInstrs-Sail-020.txt Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Contributor
Author
|
Update: 2026/06/03
|
aswaterman
approved these changes
Jun 3, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The current version is not fully verified with spike implementation because there are some issues in toolchains I can get.