Skip to content

ext-p : update table to v0.20 - #413

Merged
Andrew Waterman (aswaterman) merged 1 commit into
riscv:masterfrom
chihminchao:p-ext-0.20
Mar 24, 2026
Merged

ext-p : update table to v0.20#413
Andrew Waterman (aswaterman) merged 1 commit into
riscv:masterfrom
chihminchao:p-ext-0.20

Conversation

@chihminchao

Copy link
Copy Markdown
Contributor

Quoted from spec

"This version (020) differs from the previous one (019) with the addition of:

  • SHL instructions (shift left or right, logical) that are unsigned versions of the SHA instructions (shift left or right, arithmetic); and
  • for RV64 only, ‘P’-suffi x versions of PNCLIP instructions that are similar to RV32 PNCLIP instructions without shifting or rounding.

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

Quoted from spec

"This version (020) differs from the previous one (019) with the addition of:
  * SHL instructions (shift left or right, logical) that are unsigned
    versions of the SHA instructions (shift left or right, arithmetic); and
  * for RV64 only, ‘P’-suffi x versions of PNCLIP instructions that are
  similar to RV32 PNCLIP instructions without shifting or rounding.

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

Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
@codecov

codecov Bot commented Mar 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.09%. Comparing base (4644ba3) to head (e6a6592).
⚠️ Report is 13 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #413   +/-   ##
=======================================
  Coverage   97.08%   97.09%           
=======================================
  Files          14       14           
  Lines         926      929    +3     
=======================================
+ Hits          899      902    +3     
  Misses         27       27           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the quick turnaround!

@aswaterman
Andrew Waterman (aswaterman) merged commit ee0f7fe into riscv:master Mar 24, 2026
12 checks passed
Luca Colagrande (colluca) pushed a commit to pulp-platform/riscv-opcodes that referenced this pull request Apr 30, 2026
Quoted from spec

"This version (020) differs from the previous one (019) with the addition of:
  * SHL instructions (shift left or right, logical) that are unsigned
    versions of the SHA instructions (shift left or right, arithmetic); and
  * for RV64 only, ‘P’-suffi x versions of PNCLIP instructions that are
  similar to RV32 PNCLIP instructions without shifting or rounding.

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

Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants