Skip to content

[s390x] Add full support for f128 #10774

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

Merged
merged 1 commit into from
May 20, 2025
Merged

Conversation

uweigand
Copy link
Member

This adds all missing operations to fully support f128 at the same level as f64 and f32 on s390x. The implementation is mostly a straightfoward extension of existing support, using the same vector instruction set. The exception is conversion between integer and f128, where we have to use the older floating-point instructions that use FPR register pairs to hold a f128 value. As regalloc does not support pairs, those registers are hard-coded, just as is done for the few instructions that require GPR register pairs.

This adds all missing operations to fully support f128 at the same
level as f64 and f32 on s390x.  The implementation is mostly a
straightfoward extension of existing support, using the same vector
instruction set.  The exception is conversion between integer and
f128, where we have to use the older floating-point instructions
that use FPR register pairs to hold a f128 value.  As regalloc does
not support pairs, those registers are hard-coded, just as is done
for the few instructions that require GPR register pairs.
@uweigand uweigand requested a review from a team as a code owner May 14, 2025 13:14
@uweigand uweigand requested review from cfallin and removed request for a team May 14, 2025 13:14
@github-actions github-actions bot added cranelift Issues related to the Cranelift code generator isle Related to the ISLE domain-specific language labels May 14, 2025
Copy link

Subscribe to Label Action

cc @cfallin, @fitzgen

This issue or pull request has been labeled: "cranelift", "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

@cfallin cfallin left a comment

Choose a reason for hiding this comment

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

Thanks for this implementation -- looks good!

@cfallin cfallin added this pull request to the merge queue May 20, 2025
Merged via the queue into bytecodealliance:main with commit be31168 May 20, 2025
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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