Skip to content

Support fuzz testing RISC-V intrinsics against C API - #2263

Open
TechnoPorg wants to merge 2 commits into
rust-lang:mainfrom
TechnoPorg:push-pxsnmmxmvwtv
Open

TechnoPorg wants to merge 2 commits into
rust-lang:mainfrom
TechnoPorg:push-pxsnmmxmvwtv

Conversation

@TechnoPorg

Copy link
Copy Markdown
Contributor

As discussed in #2248, these intrinsics should be tested against the C API before being stabilized.

This PR implements intrinsic-test support for rv32 and rv64 scalar cryptography / bit manipulation extensions. It's more basic than other architectures right now, but should be straightforward to extend with vector intrinsics when they exist down the road.

Questions I still have about this:

  • Is including GPL3 license headers okay? LoongArch does so, so I assume this is fine but wanted to check
  • Should rv32 be fuzzed in CI at all, given that it's T3?

r? @tgross35

@tgross35

tgross35 commented Nov 2, 2026

Copy link
Copy Markdown
Member

I don't actually know much about the testing infra

@rustbot reroll

@rustbot rustbot assigned Amanieu and unassigned tgross35 Nov 2, 2026
@TechnoPorg

Copy link
Copy Markdown
Contributor Author

The Windows CI failure appears unrelated to this PR (https://github.com/TechnoPorg/stdarch/actions/runs/41513475082/job/125511158948?pr=4). Is it common to run into this many unrelated CI failures or am I just unlucky?

@folkertdev

Copy link
Copy Markdown
Contributor

closing/reopening to run CI

@folkertdev folkertdev closed this Nov 15, 2026
@folkertdev folkertdev reopened this Nov 15, 2026
@TechnoPorg

Copy link
Copy Markdown
Contributor Author

Hello @Amanieu! I was wondering whether you expect to be able to review this in the coming week, or whether I should reroll the reviewer.

@tgross35

Copy link
Copy Markdown
Member

Probably

r? @folkertdev

@rustbot rustbot assigned folkertdev and unassigned Amanieu Nov 23, 2026

@Amanieu Amanieu left a comment •

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.

Sorry, I missed the notification from this one.

View changes since this review

@rustbot

rustbot commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@TechnoPorg
TechnoPorg requested a review from Amanieu November 24, 2026 15:05

This branch has not been deployed

No deployments
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.

5 participants