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

winch: Use Reg where appropriate in the Masm #7002

Merged

Conversation

saulecabrera
Copy link
Member

This change is a small refactoring to some of the MacroAssembler functions to use Reg instead of RegImm where appropriate (e.g. when the operand is a destination).

@elliottt pointed this out while working on #6982

This change also changes the signature of float_abs and float_neg, which can be simplified to take a single register.

This change is a small refactoring to some of the MacroAssembler functions to
use `Reg` instead of `RegImm` where appropriate (e.g. when the operand is a
destination).

@elliottt pointed this out while working on bytecodealliance#6982

This change also changes the signature of `float_abs` and `float_neg`, which can
be simplified to take a single register.
@saulecabrera saulecabrera requested a review from a team as a code owner September 11, 2023 22:38
@saulecabrera saulecabrera requested review from abrown and elliottt and removed request for a team and abrown September 11, 2023 22:38
Copy link
Member

@elliottt elliottt left a comment

Choose a reason for hiding this comment

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

Looks great!

@github-actions github-actions bot added the winch Winch issues or pull requests label Sep 12, 2023
@github-actions
Copy link

Subscribe to Label Action

cc @saulecabrera

This issue or pull request has been labeled: "winch"

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

  • saulecabrera: winch

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

Learn more.

@saulecabrera saulecabrera added this pull request to the merge queue Sep 12, 2023
Merged via the queue into bytecodealliance:main with commit 1a1fc9d Sep 12, 2023
18 checks passed
@saulecabrera saulecabrera deleted the winch-refactor-masm-regimm branch September 12, 2023 11:39
eduardomourar pushed a commit to eduardomourar/wasmtime that referenced this pull request Sep 13, 2023
This change is a small refactoring to some of the MacroAssembler functions to
use `Reg` instead of `RegImm` where appropriate (e.g. when the operand is a
destination).

@elliottt pointed this out while working on bytecodealliance#6982

This change also changes the signature of `float_abs` and `float_neg`, which can
be simplified to take a single register.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
winch Winch issues or pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants