-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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: implement div for aarch64 #9762
Conversation
6007f4e
to
3e914eb
Compare
Subscribe to Label Action
This issue or pull request has been labeled: "winch"
Thus the following users have been cc'd because of the following labels:
To subscribe or unsubscribe from this label, edit the |
passing review over to @saulecabrera if you don't mind! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable to me; a couple of nitpicks inline.
winch/codegen/src/isa/aarch64/asm.rs
Outdated
}) | ||
} | ||
|
||
// cranelif-codegen doesn't support emitting u/sdiv for anything but I64, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// cranelif-codegen doesn't support emitting u/sdiv for anything but I64, | |
// `cranelift-codegen` doesn't support emitting u/sdiv for anything but I64, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you mind linking to this issue from this comment? #9766
winch/codegen/src/isa/aarch64/asm.rs
Outdated
DivKind::Unsigned => ALUOp::UDiv, | ||
}; | ||
|
||
self.emit(Inst::AluRRR { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here you can use the emit_alu_rrr
helper defined in this file.
Implement integer division for arch64