alexcrichton opened PR #6907 from alexcrichton:fix-x64-bitselect
to bytecodealliance:main
:
Unconditionally use
pblendvb
which will provide the semantics desired forbitselect
since theall_ones_or_all_zeros
predicate guarantees that byte-size-chunks are all-zeros-or-all-ones andpblendvb
works at the byte level. As suggested by Jamey in #6890.Closes #6890
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton requested abrown for a review on PR #6907.
alexcrichton requested wasmtime-compiler-reviewers for a review on PR #6907.
abrown submitted PR review:
This looks right to me.
all_ones_or_all_zeros
would have to get more complex for the previous logic to work; this is simpler. I'm also interested in @alexcrichton's comment elsewhere that it might be worthwhile to look into using a shuffle.
abrown merged PR #6907.
Last updated: Nov 22 2024 at 16:03 UTC