Skip to content

Support RISC-V p-ext-proposal v0.9.12 for RV32#2210

Open
jason01180118 wants to merge 33 commits intoriscv-software-src:masterfrom
nthu-pllab:p-ext-32
Open

Support RISC-V p-ext-proposal v0.9.12 for RV32#2210
jason01180118 wants to merge 33 commits intoriscv-software-src:masterfrom
nthu-pllab:p-ext-32

Conversation

@jason01180118
Copy link
Copy Markdown

See the previous PR #637

Hello, we’re the team from Programming Langauge Lab, NTHU (National Tsing-Hua University), Taiwan.

This PR implements all instructions in the latest P-Extension specification (link)

Branches are split for RV32 and RV64, since some instructions may conflict between architectures.

#define P_REDUCTION_ULOOP_END(BIT, IS_SAT) \
} \
if (IS_SAT) { \
P_USAT(BIT, p_res); \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should it be

p_res = P_USAT(BIT, p_res); 

?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

These instructions no longer have a saturation function in the new P extension spec, so I will remove the if (IS_SAT) condition and clear other build warnings. Thank you for the helpful feedback.

@chihminchao
Copy link
Copy Markdown
Contributor

Just a reminding,
based on https://www.jhauser.us/RISCV/ext-P/RVP-instrEncodings-019.pdf, there are some minor renaming
"This version (019) diff ers from the previous one (018) in correcting the names of instructions MQWACC
and MQRWACC, which previously were miswritten with a ‘P’ as “PMQWACC” and “PMQRWACC”."

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.

3 participants