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

aarch64 implement brz,brnz,br_icmp for i128 values #3002

Merged
merged 3 commits into from
Jun 21, 2021

Conversation

afonso360
Copy link
Contributor

Hey,

This PR implements a few branches for i128 values.

It also cleans up a bit of duplicated logic for lowering icmp

Lowering icmp was duplicated across callers that only cared about
flags, and callers that only cared about the bool result.

Merge both callers into `lower_icmp` which does the correct thing
depending on a new IcmpOutput parameter.
The previous commit deduplicated the icmp impl, so we reuse that
but make modifications where we don't need to set the results.
@github-actions github-actions bot added cranelift Issues related to the Cranelift code generator cranelift:area:aarch64 Issues related to AArch64 backend. labels Jun 19, 2021
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, especially the very thorough tests!

I have one comment below on a possible optimization and am curious what you think, but am happy with this either way.

@cfallin cfallin merged commit 18cd2f6 into bytecodealliance:main Jun 21, 2021
@afonso360 afonso360 deleted the aarch64-i128-br branch June 25, 2021 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cranelift:area:aarch64 Issues related to AArch64 backend. cranelift Issues related to the Cranelift code generator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants