Skip to content

x64: Lower stack_addr, udiv, sdiv, urem, srem, umulhi, smulhi in ISLE#4741

Merged
elliottt merged 10 commits intobytecodealliance:mainfrom
elliottt:trevor/x64-stack-addr
Aug 23, 2022
Merged

x64: Lower stack_addr, udiv, sdiv, urem, srem, umulhi, smulhi in ISLE#4741
elliottt merged 10 commits intobytecodealliance:mainfrom
elliottt:trevor/x64-stack-addr

Conversation

@elliottt
Copy link
Member

@elliottt elliottt commented Aug 19, 2022

Lower stack_addr, udiv, sdiv, urem, srem, umulhi, and smulhi in ISLE.

For udiv, sdiv, urem, and srem I opted to move the original lowering into an extern constructor, as the interactions with rax and rdx for the div instruction didn't seem meaningful to implement in ISLE. However, I'm happy to revisit this choice and move more of the embedding into ISLE.

@github-actions github-actions bot added cranelift Issues related to the Cranelift code generator cranelift:area:x64 Issues related to x64 codegen isle Related to the ISLE domain-specific language labels Aug 19, 2022
@github-actions
Copy link

Subscribe to Label Action

cc @cfallin, @fitzgen

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

@elliottt elliottt changed the title x64: Lower stack_addr, udiv, sdiv, urem, srem in ISLE x64: Lower stack_addr, udiv, sdiv, urem, srem, umulhi, smulhi in ISLE Aug 22, 2022
@elliottt elliottt force-pushed the trevor/x64-stack-addr branch from 47195c4 to 768e6ae Compare August 22, 2022 20:59
@elliottt elliottt marked this pull request as ready for review August 22, 2022 21:05
@elliottt elliottt force-pushed the trevor/x64-stack-addr branch from d204f23 to 02ae8ca Compare August 23, 2022 00:27
@elliottt elliottt merged commit b5f1ab7 into bytecodealliance:main Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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