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

cranelift: port sshr to ISLE on x64 #3681

Merged
merged 1 commit into from
Jan 12, 2022

Conversation

fitzgen
Copy link
Member

@fitzgen fitzgen commented Jan 11, 2022

No description provided.

@fitzgen fitzgen requested a review from alexcrichton January 11, 2022 19:50
@github-actions github-actions bot added cranelift Issues related to the Cranelift code generator cranelift:area:machinst Issues related to instruction selection and the new MachInst backend. cranelift:area:aarch64 Issues related to AArch64 backend. cranelift:area:x64 Issues related to x64 codegen isle Related to the ISLE domain-specific language labels Jan 11, 2022
@github-actions
Copy link

Subscribe to Label Action

cc @cfallin, @fitzgen

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

cranelift/codegen/src/isa/x64/lower.isle Outdated Show resolved Hide resolved
cranelift/codegen/src/isa/x64/lower.isle Show resolved Hide resolved
cranelift/codegen/src/isa/x64/lower.isle Outdated Show resolved Hide resolved
@fitzgen
Copy link
Member Author

fitzgen commented Jan 11, 2022

Okay I fixed the masking of imm8s here and elsewhere we were accidentally doing that as well.

cranelift/filetests/src/runner.rs Show resolved Hide resolved
cranelift/codegen/src/isa/x64/lower.isle Outdated Show resolved Hide resolved
; Inst 9: movdqa %xmm1, %xmm0
; Inst 10: movq %rbp, %rsp
; Inst 11: popq %rbp
; Inst 12: ret
Copy link
Member Author

Choose a reason for hiding this comment

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

Managed to get it down to 12 instructions, instead of 13. Still one additional move compared to before. meh.

@fitzgen fitzgen requested a review from alexcrichton January 11, 2022 23:40
@alexcrichton alexcrichton merged commit 7454f1f into bytecodealliance:main Jan 12, 2022
@fitzgen fitzgen deleted the port-sshr-to-isle branch January 12, 2022 18:11
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:area:machinst Issues related to instruction selection and the new MachInst backend. cranelift:area:x64 Issues related to x64 codegen 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