Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

riscv64: Add minimal support for the Zfa Extension #8536

Merged
merged 2 commits into from
May 3, 2024

Conversation

afonso360
Copy link
Contributor

👋 Hey,

This PR adds initial support for the Zfa extension and implements the fminm/fmaxm instructions and lowerings.

The Zfa extension provides additional floating point related instructions not included in either F/D extensions. Here's a link to version 1 of the extension if anyone feels up to some light reading.

The f{min,max}m instructions implemented in this PR are pretty much the same as the base fmin/fmax present in the ISA, but they have different NaN behavior, that conveniently matches the semantics of Cranelift's fmin/fmax instructions, allowing for a more efficient lowering.

This commit adds support for the Zfa extension and implements the `fminm`/`fmaxm` instructions and lowerings.

The Zfa extension provides additional floating point related instructions not included in either F/D extensions.
@afonso360 afonso360 added the cranelift:area:riscv64 Issues related to the RISC-V 64 backend. label May 3, 2024
@afonso360 afonso360 requested a review from a team as a code owner May 3, 2024 10:47
@afonso360 afonso360 requested review from elliottt and removed request for a team May 3, 2024 10:47
@afonso360 afonso360 requested a review from a team as a code owner May 3, 2024 10:51
@github-actions github-actions bot added cranelift Issues related to the Cranelift code generator cranelift:meta Everything related to the meta-language. isle Related to the ISLE domain-specific language labels May 3, 2024
Copy link

github-actions bot commented May 3, 2024

Subscribe to Label Action

cc @cfallin, @fitzgen

This issue or pull request has been labeled: "cranelift", "cranelift:area:riscv64", "cranelift:meta", "isle"

Thus the following users have been cc'd because of the following labels:

  • cfallin: isle
  • fitzgen: isle

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

Copy link
Member

@alexcrichton alexcrichton left a comment

Choose a reason for hiding this comment

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

Nice!

@alexcrichton alexcrichton added this pull request to the merge queue May 3, 2024
Merged via the queue into bytecodealliance:main with commit 4efda6c May 3, 2024
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cranelift:area:riscv64 Issues related to the RISC-V 64 backend. cranelift:meta Everything related to the meta-language. cranelift Issues related to the Cranelift code generator isle Related to the ISLE domain-specific language
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants