vulc41n opened PR #9018 from vulc41n:winch-aarch64-cmp
to bytecodealliance:main
:
This PR implements wasm comparison instructions for winch targeting aarch64.
#8321
vulc41n requested cfallin for a review on PR #9018.
vulc41n requested wasmtime-compiler-reviewers for a review on PR #9018.
vulc41n requested pchickey for a review on PR #9018.
vulc41n requested wasmtime-core-reviewers for a review on PR #9018.
saulecabrera commented on PR #9018:
I can help reviewing this change.
saulecabrera requested saulecabrera for a review on PR #9018.
saulecabrera submitted PR review:
Sorry it took me a bit to review this change. In general it looks great to me, thanks. I left one nit below which I think it makes sense to address before merging.
saulecabrera submitted PR review:
Sorry it took me a bit to review this change. In general it looks great to me, thanks. I left one nit below which I think it makes sense to address before merging.
saulecabrera created PR review comment:
I'm thinking that it might make sense to drop the
rd
param in this case, to match more accurately the instruction definition and the method usage and useregs::zero
internally when emittingemit_alu_rrr_extend
andemit_alu_rri
. That would simplify the usage from the MacroAssembler
vulc41n updated PR #9018.
saulecabrera submitted PR review:
Thanks!
vulc41n commented on PR #9018:
No problem, thanks for reviewing my pull request :smile:
I've removedrd
fromsubs
methods, but I do seeWd
in the doc you linked. Am I missing something ?
Please tell me if there is anything else I can do to improve this
saulecabrera commented on PR #9018:
No problem, thanks for reviewing my pull request :smile: I've removed
rd
fromsubs
methods, but I do seeWd
in the doc you linked. Am I missing something ? Please tell me if there is anything else I can do to improve thisYeah, according to the docs there's a proper destination register, however, it's not currently used in the way we lower comparison operations in Winch, since we rely on the flags or in
cmp_with_set
, so my suggestion is mostly to make it easier to reflect the usage.
saulecabrera merged PR #9018.
Last updated: Dec 23 2024 at 12:05 UTC