Open
Conversation
Contributor
Author
|
For some reason, the CI was stuck as building step |
arromanoff
reviewed
Mar 19, 2026
f935bb4 to
91cc12d
Compare
Contributor
Author
|
Update : 03/26/2026
|
91cc12d to
7dffa63
Compare
Contributor
Author
|
update: 03/26/2026
|
aswaterman
reviewed
Mar 25, 2026
aswaterman
reviewed
Mar 25, 2026
aswaterman
reviewed
Mar 25, 2026
aswaterman
reviewed
Mar 25, 2026
aswaterman
reviewed
Mar 25, 2026
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
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>
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
make rv64_p instructions higer priority Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Per the P-extension spec, any instruction that performs saturation must set the vxsat CSR to 1 when the result is clamped. 70 instructions were missing this write, addressed here in two ways: 1. Convert P_SAT, P_USAT, and P_USAT_FULL macros from pure expression macros to GCC statement expressions that detect when saturation occurs and write P.VU.vxsat. This automatically fixes ~42 instructions that use these macros (nclip/nclipi/nclipr/nclipri families, psati, psslai, pssh1sadd, pusati, sati, usati, ssh1sadd, sslai, and their packed/double-wide variants). 2. Add explicit vxsat writes to 22 instructions with inline saturation logic that bypasses the macros: - mulq/mulqr/pmulq/pmulqr: set vxsat on INT_MIN * INT_MIN overflow - psas/pssa cross variants: set vxsat from sat_add/sat_sub sat flag - pssha/psshar DW variants: set vxsat from ov overflow flag - pssha/psshar/ssha/sshar: set vxsat in sshamt >= BIT overflow path - pusati_dh/pusati_dw: set vxsat on unsigned range clamping Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
…_INT128 Replace bare __int128 / unsigned __int128 in psshar_dhs.h and psshar_dws.h with the int128_t / uint128_t typedefs from fesvr/byteorder.h, and guard the entire riscv_insn_ext_p list in riscv.mk.in with $(if $(HAVE_INT128),...) matching the existing pattern for the V extension Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
7dffa63 to
684b609
Compare
Contributor
Author
|
Several change in this version
|
aswaterman
approved these changes
Apr 8, 2026
aswaterman
reviewed
Apr 8, 2026
| #include "internals.h" | ||
| #include "specialize.h" | ||
| #include "tracer.h" | ||
| #include "p_ext_macros.h" |
Collaborator
There was a problem hiding this comment.
I think this is causing the CI failure.
Note that Spike CI tests that all commits are functional, so you will need to squash this change into the commit that removed p_ext_macros.h.
Ping me when the PR is ready to merge. Thanks @chihminchao!
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 PR merges the works, #2210 and #2211 and the main author is @jason01180118. The changes from me are